FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / ultrasp4.c
blobb421688f004e3096734cc871162e44e9666f03c0
1 /* Simplified from PR target/5309. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-options "-O2 -m64 -mcpu=ultrasparc" { target sparc64-*-* } } */
5 /* { dg-options "-O2 -m64 -mcpu=ultrasparc" { target sparcv9-*-* } } */
6 /* { dg-options "-O2" { target sparc-*-solaris2.[0-6] } } */
7 /* { dg-options "-O2" { target sparc-*-solaris2.[0-6].* } } */
9 long bar (unsigned int);
10 long foo (long x, unsigned int y)
12 return *(((long *) (bar (y) - 1)) + 1 + (x >> 2) % 359);