gcc/testsuite/gcc.target/bpf/alu-2.c
raw| 1 | /* Check add and sub instructions. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-masm=normal" } */ |
| 4 | |
| 5 | long foo (long x, long y) |
| 6 | { |
| 7 | return y - x + 4; |
| 8 | } |
| 9 | |
| 10 | /* { dg-final { scan-assembler-not {sub\t(%r.),\1\n} } } */ |
| 11 | /* { dg-final { scan-assembler {sub\t(\%r.),(\%r.)\n} } } */ |
| 12 | /* { dg-final { scan-assembler {add\t(\%r.),4\n} } } */ |