Debian Codegraph @

gcc/testsuite/gcc.target/i386/fentry.c

raw
1 /* Test -mfentry */
2 /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
3 /* { dg-require-effective-target mfentry } */
4 /* { dg-options "-fprofile -mfentry" } */
5 /* { dg-final { scan-assembler "__fentry__" } } */
6 /* Origin: Andi Kleen */
7 extern void foobar(const char *);
8
9 void func(void)
10 {
11 foobar ("Hello world\n");
12 }
13
14 void func2(void)
15 {
16 int i;
17 for (i = 0; i < 10; i++)
18 foobar ("Hello world");
19 }