1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* Check that an X-reg UBFIZ can be simplified into a W-reg LSL. */
5
6 long long
7 f2 (long long x)
8 {
9 return (x << 5) & 0xffffffff;
10 }
11
12 /* { dg-final { scan-assembler "lsl\tw" } } */
13 /* { dg-final { scan-assembler-not "ubfiz\tx" } } */