aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/rotate-2.c
blob: 71fd7edbd618614d09846dc61f182ff0f450d217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2" } */

typedef unsigned int UTItype __attribute__ ((mode (TI)));

void foo (UTItype *);

UTItype
test (void)
{
  UTItype c = 0;
  foo (&c);
  c = c >> 5 | c << 123;
  return c;
}
/* { dg-final { scan-assembler-times "shrdq" 2 } } */