Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/cmpbit-6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* PR tree-optimization/106164 */
4 /* PR tree-optimization/111456 */
5
6 _Bool iu(int a)
7 {
8 _Bool t = a == 0;
9 unsigned t1 = a;
10 _Bool t2 = t1 >= 3;
11 return t & t2;
12 }
13
14 _Bool is(int a)
15 {
16 _Bool t = a == 0;
17 short t1 = a;
18 _Bool t2 = t1 >= 3;
19 return t & t2;
20 }
21
22 /* { dg-final { scan-tree-dump-times "return 0" 2 "optimized" } } */