Debian Codegraph @

gcc/testsuite/gcc.dg/pr114902.c

raw
1 /* PR rtl-optimization/114902 */
2 /* { dg-do run } */
3 /* { dg-options "-O1 -fno-tree-fre -fno-tree-forwprop -fno-tree-ccp -fno-tree-dominator-opts" } */
4
5 __attribute__((noipa))
6 int foo (int x)
7 {
8 int a = ~x;
9 int t = a & 1;
10 int e = -t;
11 int b = e >= -1;
12 if (b)
13 return 0;
14 __builtin_trap ();
15 }
16
17 int
18 main ()
19 {
20 foo (-1);
21 foo (0);
22 foo (1);
23 }