1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
4 /* See PR99888, one single preceding nop isn't allowed on powerpc_elfv2,
5 so overriding with two preceding nops to make it pass there. */
6 /* { dg-additional-options "-fpatchable-function-entry=3,2" { target powerpc_elfv2 } } */
7 /* { dg-final { scan-assembler-times "nop|NOP|SWYM" 3 { target { ! { alpha*-*-* riscv*-*-* } } } } } */
8 /* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */
9 /* { dg-final { scan-assembler-times "nop\n" 3 { target riscv*-*-* } } } */
10
11 extern int a;
12
13 /* Nothing declared must not mean anything. */
14 int f3 (void);
15
16 /* F3 should get a default-sized NOP area. */
17 int
18 __attribute__((noinline))
19 f3 (void)
20 {
21 return 5*a;
22 }