2017-08-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / medium_offset.c
blobf29eba08c3837ca751660acd1a6634e35059b4a2
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O" } */
4 /* { dg-final { scan-assembler-not "\\+4611686018427387904" } } */
6 static int x;
8 unsigned long
9 foo (void)
11 return ((unsigned long) &x) - 0xc000000000000000;