* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / noplt_2.c
blob3be94aafc66d0a3167bd96f331ca3d6ce3441509
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-skip-if "-mcmodel=large, no support for -fpic" { aarch64-*-* } { "-mcmodel=large" } { "" } } */
5 __attribute__ ((noplt))
6 int* bar0 (void) ;
7 int* bar1 (void) ;
9 int
10 foo (int a)
12 int *b0 = bar0 ();
13 int *b1 = bar1 ();
14 return b0[a] + b1[a];
17 /* { dg-final { scan-assembler-times "blr" 1 } } */
18 /* { dg-final { scan-assembler-times "bl\t" 1 } } */