aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr119291.c
blob: 41eadf013d7d2d814d965d2151a90028a75e098d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* PR rtl-optimization/119291 */

int a;
long c;

__attribute__((noipa)) void
foo (int x)
{
  if (x != 0)
    __builtin_abort ();
  a = 42;
}

int
main ()
{
  int e = 1;
lab:
  if (a < 2)
    {
      int b = e;
      _Bool d = a != 0;
      _Bool f = b != 0;
      unsigned long g = -(d & f);
      unsigned long h = c & g;
      unsigned long i = ~c;
      e = -(i & h);
      c = e != 0;
      a = ~e + b;
      foo (e);
      goto lab;
    }
}