2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
4 /* { dg-final { scan-tree-dump-times "x r<< y" 4 "original" { target int32 } } } */
5 /* { dg-final { scan-tree-dump-times "x r>> y" 4 "original" { target int32 } } } */
10 return (x
<< y
) | (x
>> (__CHAR_BIT__
* __SIZEOF_INT__
- y
));
14 f2 (unsigned x
, int y
)
16 return (x
<< y
) | (x
>> (-y
& (__CHAR_BIT__
* __SIZEOF_INT__
- 1)));
20 f3 (unsigned x
, int y
)
22 return (x
>> y
) | (x
<< (__CHAR_BIT__
* __SIZEOF_INT__
- y
));
26 f4 (unsigned x
, int y
)
28 return (x
>> y
) | (x
<< (-y
& (__CHAR_BIT__
* __SIZEOF_INT__
- 1)));
32 f5 (unsigned x
, int y
)
34 return (x
>> (__CHAR_BIT__
* __SIZEOF_INT__
- y
)) | (x
<< y
);
38 f6 (unsigned x
, int y
)
40 return (x
>> (-y
& (__CHAR_BIT__
* __SIZEOF_INT__
- 1))) | (x
<< y
);
44 f7 (unsigned x
, int y
)
46 return (x
<< (__CHAR_BIT__
* __SIZEOF_INT__
- y
)) | (x
>> y
);
50 f8 (unsigned x
, int y
)
52 return (x
<< (-y
& (__CHAR_BIT__
* __SIZEOF_INT__
- 1))) | (x
>> y
);