Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / indirect-thunk-6.c
blob8bc45ff68ce9415e164fb1f2241cada082b6e54e
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fpic -fno-plt -mindirect-branch=thunk" } */
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 "jmp\[ \t\]*__x86_indirect_thunk" { target x32 } } } */
15 /* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 2 { target x32 } } } */
16 /* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 2 { target x32 } } } */
17 /* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*bar@GOT" { target { ! x32 } } } } */
18 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { ! x32 } } } } */
19 /* { dg-final { scan-assembler-times "jmp\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
20 /* { dg-final { scan-assembler-times "call\[ \t\]*\.LIND" 1 { target { ! x32 } } } } */
21 /* { dg-final { scan-assembler {\tpause} } } */
22 /* { dg-final { scan-assembler {\tlfence} } } */