1 /* PR middle-end/21137 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
28 #if __INT_MAX__ == 32767
30 #elif __INT_MAX__ == 2147483647
32 #elif __INT_MAX__ == 9223372036854775807
35 #error Please add support for your target here.
40 if ((e
>> (INT_BITS
- 1)) & 64)
44 void test6(unsigned int f
)
46 if ((f
>> (INT_BITS
- 1)) & 64)
50 /* { dg-final { scan-tree-dump-times "\\(a \& 8\\) != 0" 1 "original" } } */
51 /* { dg-final { scan-tree-dump-times "\\(b \& 32\\) != 0" 1 "original" } } */
52 /* { dg-final { scan-tree-dump-times "c >> 3 \& 1" 1 "original" } } */
53 /* { dg-final { scan-tree-dump-times "d >> 3 \& 4" 1 "original" } } */
54 /* { dg-final { scan-tree-dump-times "e < 0" 1 "original" } } */
55 /* { dg-final { scan-tree-dump-times "if \\(0\\)" 1 "original" } } */