gcc/testsuite/gcc.target/powerpc/medium_offset.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-require-effective-target lp64 } */ |
| 3 | /* { dg-options "-O" } */ |
| 4 | /* { dg-final { scan-assembler-not "\\+4611686018427387904" } } */ |
| 5 | |
| 6 | static int x; |
| 7 | |
| 8 | unsigned long |
| 9 | foo (void) |
| 10 | { |
| 11 | return ((unsigned long) &x) - 0xc000000000000000; |
| 12 | } |