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" } } */