]>
Commit | Line | Data |
---|---|---|
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 | |
6 | extern int a; | |
7 | ||
8 | int f3 (void); | |
9 | ||
10 | /* F3 should now get 1 NOP. */ | |
11 | int | |
12 | __attribute__((noinline)) | |
13 | __attribute__((patchable_function_entry(1))) | |
14 | f3 (void) | |
15 | { | |
16 | return 5*a; | |
17 | } |