gcc/testsuite/gcc.dg/torture/no-callee-saved-run-1a.c
raw| 1 | /* { dg-do run { target i?86-*-* x86_64-*-* } } */ |
| 2 | /* { dg-additional-sources no-callee-saved-run-1b.c } */ |
| 3 | |
| 4 | extern void bar0 (int, int, int, int, int, int, int, int, int) |
| 5 | __attribute__ ((no_callee_saved_registers)); |
| 6 | |
| 7 | void |
| 8 | foo (void) |
| 9 | { |
| 10 | bar0 (0, 1, 2, 3, 4, 5, 6, 7, 8); |
| 11 | } |
| 12 | |
| 13 | int |
| 14 | bar (int x) |
| 15 | { |
| 16 | return x; |
| 17 | } |
| 18 | |
| 19 | void |
| 20 | bad (void) |
| 21 | { |
| 22 | __builtin_abort (); |
| 23 | } |