2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr67215-2.c
blobebf2919078c4dab981a0ac1e046d4f4dd491f18a
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
4 extern char* bar (int) __attribute__ ((noplt));
5 extern char* arr[32];
7 void
8 foo (void)
10 int i;
12 for (i = 0; i < 32; i++)
13 arr[i] = bar (128);
16 /* { dg-final { scan-assembler "call\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
17 /* { dg-final { scan-assembler "call\[ \t\]*.bar@GOT\\(" { target ia32 } } } */
18 /* { dg-final { scan-assembler-not "mov(l|q)\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
19 /* { dg-final { scan-assembler-not "movl\[ \t\]*.bar@GOT\\(" { target ia32 } } } */
20 /* { dg-final { scan-assembler-not "call\[ \t\]*.bar@PLT" } } */