Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / 20040218-1.c
blob4d1541af8bfa9b36b2754dfbaa5be144c3159e79
1 /* PR target/14209. Bug in cris.md, shrinking access size of
2 postincrement.
3 Origin: <hp@axis.com>. */
5 long int xb (long int *y) __attribute__ ((__noinline__));
6 long int xw (long int *y) __attribute__ ((__noinline__));
7 short int yb (short int *y) __attribute__ ((__noinline__));
9 long int xb (long int *y)
11 long int xx = *y & 255;
12 return xx + y[1];
15 long int xw (long int *y)
17 long int xx = *y & 65535;
18 return xx + y[1];
21 short int yb (short int *y)
23 short int xx = *y & 255;
24 return xx + y[1];
27 int main (void)
29 long int y[] = {-1, 16000};
30 short int yw[] = {-1, 16000};
32 if (xb (y) != 16255
33 || xw (y) != 81535
34 || yb (yw) != 16255)
35 abort ();
36 exit (0);