Debian Codegraph @

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

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