Debian Codegraph @

gcc/testsuite/gcc.dg/pr110992.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp" } */
3
4 void foo (int);
5
6 int f(unsigned b, short c)
7 {
8 int bt = b;
9 int bt1 = bt;
10 int t = bt1 & -(c!=0);
11 // int t = bt1 * (c!=0);
12
13 if (!t) return 0;
14 foo(bt == 0);
15 return 0;
16 }
17
18 /* { dg-final { scan-tree-dump-times "foo \\(0\\)" 1 "evrp" } } */