aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/rotmask.c
blob: 4d1b9174921869c8808ca67ea7f9d3452487e68f (plain)
1
2
3
4
5
6
7
8
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "rotldi" } } */

unsigned long f (unsigned long x)
{
  return ((x << 1) | (x >> 63)) & 0xffffffff;
}