1 /* { dg-options "-O2" } */
4 extern void abort (void);
6 typedef unsigned int __u32
;
9 __rev16_32_alt (__u32 x
)
11 return (((__u32
)(x
) & (__u32
)0xff00ff00UL
) >> 8)
12 | (((__u32
)(x
) & (__u32
)0x00ff00ffUL
) << 8);
18 return (((__u32
)(x
) & (__u32
)0x00ff00ffUL
) << 8)
19 | (((__u32
)(x
) & (__u32
)0xff00ff00UL
) >> 8);
25 volatile __u32 in32
= 0x12345678;
26 volatile __u32 expected32
= 0x34127856;
28 if (__rev16_32 (in32
) != expected32
)
31 if (__rev16_32_alt (in32
) != expected32
)