summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr81471.c
blob: 68b4497c9f2485794d664b06623c90880f5ed265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/81471 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mbmi2" } */

static inline unsigned int rotl (unsigned int x, int k)
{
  return (x << k) | (x >> (32 - k));
}

unsigned long long test (unsigned int z)
{
  return rotl (z, 55);
}