c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bswap16.c
blob89efc8118442b27aeedfe7c19b173d277da0f64b
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler "lhbrx" } } */
4 /* { dg-final { scan-assembler "sthbrx" } } */
6 unsigned int load_bswap16 (unsigned short *p) { return __builtin_bswap16 (*p); }
7 void store_bswap16 (unsigned short *p, unsigned int a) { *p = __builtin_bswap16 (a); }