aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr102356.c
blob: 6fce77043cc2b31bfda26bcbf554f6bb849b17e2 (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/102356 */
/* { dg-do compile { target int32plus } } */
/* { dg-options "-O3 -g" } */

signed char a = 0;
unsigned char b = 9;
unsigned long long c = 0xF1FBFC17225F7A57ULL;
int d = 0x3A6667C6;

unsigned char
foo (unsigned int x)
{
  unsigned int *e = &x;
  if ((c /= ((0 * (*e *= b)) <= 0)))
    ;
  for (d = 9; d > 2; d -= 2)
    {
      c = -2;
      do
	if ((*e *= *e))
	  {
	    a = 4;
	    do
	      {
		a -= 3;
		if ((*e *= *e))
		  b = 9;
	      }
	    while (a > 2);
	  }
      while (c++);
    }
}