OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [m68k-byte-addr.c] - Blame information for rev 299

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* This testcase triggered an attempt to reload a byte value into an
2
   address register.  */
3
extern volatile unsigned char x[];
4
 
5
#define DECLARE(I) orig##I, inc##I
6
#define READ(I) orig##I = x[I]
7
#define INC(I) inc##I = orig##I + 1
8
#define WRITE1(I) x[I] = orig##I
9
#define WRITE2(I) x[I] = inc##I
10
 
11
#define REPEAT(X) X(0), X(1), X(2), X(3), X(4), X(5), X(6), X(7), X(8)
12
 
13
void foo (void)
14
{
15
  unsigned char REPEAT (DECLARE);
16
  REPEAT (READ);
17
  REPEAT (INC);
18
  REPEAT (WRITE1);
19
  REPEAT (WRITE2);
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.