blob: feebcc87ee89af1989abe5555023e910d3cebea2 [file] [log] [blame]
/* { dg-do compile { target { ! nvptx*-*-* } } } */
/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
/* { dg-additional-options "-mcpu=gr6" { target visium-*-* } }
/* { dg-final { scan-assembler-times "nop" 1 { target { ! { alpha*-*-* } } } } } */
/* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
extern int a;
int f3 (void);
/* F3 should now get 1 NOP. */
int
__attribute__((noinline))
__attribute__((patchable_function_entry(1)))
f3 (void)
{
return 5*a;
}