PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cet-notrack-7.c
blobf2e31d0258af5a6dfef7e4375c3f3e8f2842cc3d
1 /* Check the notrack prefix is not generated for direct call. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fcf-protection -mcet" } */
4 /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
5 /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
6 /* { dg-final { scan-assembler-times "notrack call\[ \t]+.*foo" 0 } } */
7 /* { dg-final { scan-assembler-times "\tcall\[ \t]+.*foo" 1 } } */
9 extern void foo (void) __attribute__((nocf_check));
11 void
12 bar (void)
14 foo ();