OLD | NEW |
1 /* { dg-do run} */ | 1 /* { dg-do run } */ |
| 2 /* { dg-require-effective-target lp64 } */ |
2 /* { dg-options "-mpatch-functions-for-instrumentation -mpatch-functions-ignore-
loops -mno-patch-functions-main-always" } */ | 3 /* { dg-options "-mpatch-functions-for-instrumentation -mpatch-functions-ignore-
loops -mno-patch-functions-main-always" } */ |
3 | 4 |
4 /* Function is too small to be patched when ignoring the loop. | 5 /* Function is too small to be patched when ignoring the loop. |
5 Check there aren't any nop-bytes at beginning and end of function. */ | 6 Check there aren't any nop-bytes at beginning and end of function. */ |
6 | 7 |
7 /* { dg-final { scan-assembler-not ".byte\t0xeb,0x09(.*).byte\t0x90" } } */ | 8 /* { dg-final { scan-assembler-not ".byte\t0xeb,0x09(.*).byte\t0x90" } } */ |
8 /* { dg-final { scan-assembler-not "ret(.*).byte\t0x90(.*).byte\t0x90" } } */ | 9 /* { dg-final { scan-assembler-not "ret(.*).byte\t0x90(.*).byte\t0x90" } } */ |
9 | 10 |
10 void foo() { | 11 void foo() { |
11 int x = 0; | 12 int x = 0; |
12 while (++x); | 13 while (++x); |
13 } | 14 } |
14 | 15 |
15 int main() { | 16 int main() { |
16 foo(); | 17 foo(); |
17 return 0; | 18 return 0; |
18 } | 19 } |
OLD | NEW |