1 /* PR middle-end/29749 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
5 #if __SCHAR_MAX__ == 127
10 return a
>> 5 | a
<< 3;
16 return (a
& 0xe0) >> 5 | (a
& 0x1f) << 3;
22 return ((a
>> 5) & 0x07) | ((a
<< 3) & 0xf8);
27 #if __SHRT_MAX__ == 32767
32 return a
>> 8 | a
<< 8;
38 return (a
& 0xff00) >> 8 | (a
& 0x00ff) << 8;
44 return ((a
>> 8) & 0x00ff) | ((a
<< 8) & 0xff00);
49 #if __INT_MAX__ == 2147483647
54 return a
>> 24 | a
<< 8;
60 return (a
& 0xff000000) >> 24 | (a
& 0x00ffffff) << 8;
66 return ((a
>> 24) & 0x000000ff) | ((a
<< 8) & 0xffffff00U
);
73 /* { dg-final { scan-tree-dump-times "&" 0 "original" } } */
74 /* { dg-final { cleanup-tree-dump "original" } } */