summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rotate-1.c
blob: 23dc2ee670bf079846116524035e45642735f07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Verify that rolb instruction is emitted on IA-32/x86-64.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void foo (unsigned char *);

int
main (void)
{
  unsigned char c = 0;
  foo (&c);
  c = c >> 1 | c << 7;
  return c;
}

/* { dg-final { scan-assembler "rolb" } } */