PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-definition.c
blobaf18dbcd5e639f26b82783fb039f4028e850f366
1 /* { dg-do compile { target { ! nvptx*-*-* } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-final { scan-assembler-times "nop" 1 { target { ! { alpha*-*-* visium-*-* } } } } } */
4 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
5 /* { dg-final { scan-assembler-times "nop" 2 { target visium-*-* } } } */
7 extern int a;
9 int f3 (void);
11 /* F3 should now get 1 NOP. */
12 int
13 __attribute__((noinline))
14 __attribute__((patchable_function_entry(1)))
15 f3 (void)
17 return 5*a;