PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32219-6.c
blob24e55ae014636bf16df9c2dac2c4c739adb43cb8
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pie } */
3 /* { dg-options "-O2 -fpic" } */
5 /* Initialized symbol with -fpic. */
6 int xxx = -1;
8 int
9 foo ()
11 return xxx;
14 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx\\(%rip\\), %" { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler "xxx@GOTPCREL" { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx@GOTOFF\\(%\[^,\]*\\), %" { target ia32 } } } */
17 /* { dg-final { scan-assembler "movl\[ \t\]xxx@GOT\\(%\[^,\]*\\), %" { target ia32 } } } */