Use gather loads for strided accesses
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pie-copyrelocs-3.c
blobc2fa8968e7732e510aafdd4a3c0183168b295c4d
1 /* Check that PLT is used to access glob_a. */
2 /* { dg-do compile { target *-*-linux* } } */
3 /* { dg-require-effective-target pie_copyreloc } */
4 /* { dg-options "-O2 -fpie" } */
6 extern int glob_a (void);
8 int foo ()
10 return glob_a ();
13 /* glob_a should be accessed with a PLT. */
14 /* { dg-final { scan-assembler "glob_a@PLT" { target { ! ia32 } } } } */