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