1 /* { dg-do compile { target cris-*-* } } */
2 /* { dg-final { scan-assembler "and.w -137," } } */
3 /* { dg-final { scan-assembler "and.b -64," } } */
4 /* { dg-final { scan-assembler "and.w -139," } } */
5 /* { dg-final { scan-assembler "and.b -63," } } */
6 /* { dg-final { scan-assembler-not "and.d" } } */
7 /* { dg-options "-O2" } */
9 /* PR target/17984. Test-case based on
10 testsuite/gcc.dg/cris-peep2-xsrand.c. */
13 andwlsr (unsigned int x
)
15 return (x
>> 16) & 0xff77;
19 andblsr (unsigned int x
)
21 return (x
>> 24) & 0xc0;
27 return (x
>> 16) & 0xff75;
33 return (x
>> 24) & 0xc1;