Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / i386 / pic-1.c
blob7762230c2f6c01fac97d04c037f4dea2466c6ddb
1 /* PR target/8340 */
2 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-fPIC" } */
6 int foo ()
8 static int a;
10 __asm__ __volatile__ ( /* { dg-error "PIC register" } */
11 "xorl %%ebx, %%ebx\n"
12 "movl %%ebx, %0\n"
13 : "=m" (a)
15 : "%ebx"
18 return a;