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

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

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