aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/powerpc/rotate.c
blob: 5d47215d9d55d5aea4b82890a9203963d7dd9ab1 (plain)
1
2
3
4
5
6
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "slwi" } } */
unsigned int foo (unsigned int x)
{
  return ((x >> 16) & 0xffff) | ((x & 0xffff) << 16);
}