Debian Codegraph @

gcc/testsuite/gcc.target/bpf/smov-1.c

raw
1 /* Check signed mov instructions. */
2 /* { dg-do compile } */
3 /* { dg-options "-mcpu=v4 -O2 -masm=normal" } */
4
5 long
6 foo (char a, short b, int c, unsigned long d)
7 {
8 long x = a;
9 long y = b;
10 long z = c;
11 long w = (long) d;
12
13 return x + y + z + w;
14 }
15
16 /* { dg-final { scan-assembler {movs\t%r.,%r.,8\n} } } */
17 /* { dg-final { scan-assembler {movs\t%r.,%r.,16\n} } } */
18 /* { dg-final { scan-assembler {movs\t%r.,%r.,32\n} } } */