* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr65248-3.c
blobe7a05eac6e6e9e27a95d1d1b653eb9d62def164f
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
4 /* Initialized symbol with -fpic. */
5 __attribute__((visibility("protected")))
6 int xxx = -1;
8 int
9 foo ()
11 return xxx;
14 /* { dg-final { scan-assembler-not "xxx\\(%rip\\)" { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler "xxx@GOTPCREL" { target { ! ia32 } } } } */
16 /* { dg-final { scan-assembler-not "xxx@GOTOFF" { target ia32 } } } */
17 /* { dg-final { scan-assembler "xxx@GOT\\(" { target ia32 } } } */