aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr109115.c
blob: 780477105ed3211adfa3715a44473d89d122b591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/109115 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int a, b;

int
main ()
{
  unsigned short c = a, e = -1;
  if (b)
    {
      unsigned d = (a ^ 1U) / a & c;
      int f = (~d >> ~a) / e;
      if (a)
	f = a;
      a = f;
    }
  return 0;
}