Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/ubfx_lsr_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* Check that an X-reg UBFX can be simplified into a W-reg LSR. */
5
6 int
7 f (unsigned long long x)
8 {
9 x = (x >> 24) & 255;
10 return x + 1;
11 }
12
13 /* { dg-final { scan-assembler "lsr\tw" } } */
14 /* { dg-final { scan-assembler-not "ubfx\tx" } } */