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 /* { dg-final { scan-assembler-times "nop|NOP|SWYM" 1 { target { ! { alpha*-*-* riscv*-*-* } } } } } */
5 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
6 /* { dg-final { scan-assembler-times "nop\n" 1 { target riscv*-*-* } } } */
7
8 extern int a;
9
10 int f3 (void);
11
12 /* F3 should now get 1 NOP. */
13 int
14 __attribute__((noinline))
15 __attribute__((patchable_function_entry(1)))
16 f3 (void)
17 {
18 return 5*a;
19 }