summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/xchg-1.c
blob: e81fe49cd0b1c95e73cfbf526d08dfd897b84ad5 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */

unsigned short good(unsigned short a)
{
       return (a >> 8 | a << 8);
}

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