Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / indirect-thunk-inline-6.c
blobd1300f18dc7ac3b2b69a5ddc5a132702fdc6c9ef
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fpic -fno-plt -mindirect-branch=thunk-inline" } */
4 extern void bar (void);
6 int
7 foo (void)
9 bar ();
10 return 0;
13 /* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*bar@GOT" { target x32 } } } */
14 /* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*bar@GOT" { target { ! x32 } } } } */
15 /* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 } } */
16 /* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 } } */
17 /* { dg-final { scan-assembler-times {\tpause} 1 } } */
18 /* { dg-final { scan-assembler-times {\tlfence} 1 } } */
19 /* { dg-final { scan-assembler-not "__x86_indirect_thunk" } } */