Debian Codegraph @

gcc/testsuite/gcc.target/bpf/neg-pseudoc-1.c

raw
1 /* Check negr and negr32 instructions (pseudoc asm dialect.) */
2
3 /* { dg-do compile } */
4 /* { dg-options "-malu32 -masm=pseudoc" } */
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 {\t(r.) = -\1\n} } } */
14 /* { dg-final { scan-assembler {\t(w.) = -\1\n} } } */