gcc/testsuite/gcc.target/aarch64/stp_1.c
raw| 1 | /* { dg-options "-O -fpeephole2" } */ |
| 2 | |
| 3 | int res[2]; |
| 4 | |
| 5 | void |
| 6 | f1 (int x, int y) |
| 7 | { |
| 8 | res[0] = res[1] = x + y; |
| 9 | } |
| 10 | |
| 11 | void |
| 12 | f2 (int x, int y, int *res) |
| 13 | { |
| 14 | res[0] = res[1] = x + y; |
| 15 | } |
| 16 | |
| 17 | void |
| 18 | f3 (int x, int y) |
| 19 | { |
| 20 | res[1] = res[0] = x + y; |
| 21 | } |
| 22 | |
| 23 | void |
| 24 | f4 (int x, int y, int *res) |
| 25 | { |
| 26 | res[1] = res[0] = x + y; |
| 27 | } |
| 28 | |
| 29 | /* { dg-final { scan-assembler-times {\tstp\t} 4 } } */ |