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

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

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