Debian Codegraph @

gcc/testsuite/gcc.target/cris/peep2-lsrandsplit1.c

raw
1 /* { dg-do compile } */
2 /* { dg-final { scan-assembler-not " and" } } */
3 /* { dg-final { scan-assembler-times "lsrq " 2 } } */
4 /* { dg-final { scan-assembler-times "lslq " 2 } } */
5 /* { dg-options "-O2" } */
6
7 /* Test the "lsrlsllsr1" peephole2 trivially. */
8
9 unsigned int
10 andwlsr (unsigned int x)
11 {
12 return (x >> 17) & 0x7ff;
13 }
14
15 int
16 andwasr (int x)
17 {
18 return (x >> 17) & 0x7ff;
19 }