blob: a19afce39827712305d88d5e5caa19d2180b4407 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-final { scan-assembler "movu.w " } } */
/* { dg-final { scan-assembler "movu.b " } } */
/* { dg-final { scan-assembler-not "and.. " } } */
/* { dg-options "-O2" } */
/* Test the "movulsrb", "movulsrw" peephole2:s trivially. */
unsigned int
movulsrb (unsigned int x)
{
return (x & 255) >> 1;
}
unsigned int
movulsrw (unsigned int x)
{
return (x & 65535) >> 4;
}