gcc/testsuite/gcc.target/bpf/neg-1.c
raw| 1 | /* Check negr and negr32 instructions. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-malu32 -masm=normal" } */ |
| 5 | |
| 6 | long foo (long a, long b, int x, int y) |
| 7 | { |
| 8 | a = -b; |
| 9 | x = -y; |
| 10 | return a + x; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "neg\t%r.\n" } } */ |
| 14 | /* { dg-final { scan-assembler "neg32\t%r.\n" } } */ |