gcc/testsuite/gcc.target/cris/biap.c
raw| 1 | /* Make sure ADDI is combined and emitted successfully. |
| 2 | See also PR37939. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O2" } */ |
| 5 | /* { dg-final { scan-assembler-times "\taddi" 2 } } */ |
| 6 | /* { dg-final { scan-assembler-not "\tlsl|\tmul|\tmove|\tadd\[^i\]" } } */ |
| 7 | |
| 8 | int xyzzy (int r10, int r11) |
| 9 | { |
| 10 | return r11 * 4 + r10; |
| 11 | } |
| 12 | |
| 13 | int plugh (int r10, int r11) |
| 14 | { |
| 15 | return r11 * 2 + r10; |
| 16 | } |