]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
* c-c++-common/patchable_function_entry-decl.c: Do not run on Visium.
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-definition.c
CommitLineData
9703fa32 1/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
e6c4532a 2/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
1a6efb71 3/* { dg-final { scan-assembler-times "nop|NOP" 1 { target { ! { alpha*-*-* } } } } } */
1c29f8c2 4/* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
e6c4532a 5
6extern int a;
7
8int f3 (void);
9
10/* F3 should now get 1 NOP. */
11int
12__attribute__((noinline))
13__attribute__((patchable_function_entry(1)))
14f3 (void)
15{
16 return 5*a;
17}