2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr32219-2.c
blob9159d458b90a348dea333a53756301de3b13d2e3
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pie } */
3 /* { dg-options "-O2 -fpic" } */
5 /* Common symbol with -fpic. */
6 int xxx;
8 int
9 foo ()
11 return xxx;
14 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx\\(%rip\\), %eax" { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler "xxx@GOTPCREL" { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx@GOTOFF\\(%\[^,\]*\\), %eax" { target ia32 } } } */
17 /* { dg-final { scan-assembler "movl\[ \t\]xxx@GOT\\(%\[^,\]*\\), %eax" { target ia32 } } } */