1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=z900 -mzarch" } */
11 return __builtin_bswap16 (a
);
13 /* { dg-final { scan-assembler-times "lrvr\t%r2,%r\[0-9\]*" 1 } } */
18 return __builtin_bswap16 (u16
);
20 /* { dg-final { scan-assembler-times "lrvh\t%r2,0\\(%r\[0-9\]*\\)" 1 } } */
25 u16
= __builtin_bswap16 (a
);
27 /* { dg-final { scan-assembler-times "strvh\t%r2,0\\(%r\[0-9\]*\\)" 1 } } */