aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr72742.c
blob: eedcd66b23281b7ecc03ea8c436201dadf803612 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* PR target/72742 */

int a, b;
unsigned short int c;

void
foo (int x, unsigned short int *y)
{
  int fx;
 lab:
    {
      unsigned short int va;
      if (x != 0)
	{
	  c %= a < 0;
	  while (c < 17)
	    ++c;
	  b &= fx;
	  if ((a & (b != 0 ? *y : 0)) != 0)
	    {
	      va /= 3;
	      a += (va != 0) ? (va = a) : 0;
	    }
	  a = va && a;
	  goto lab;
	  y = &va;
	}
    }
}

void
bar (int x, unsigned short int *y)
{
  int fx;
 lab:
    {
      unsigned short int va;
      if (x != 0)
	{
	  c %= a < 0;
	  while (c < 17)
	    ++c;
	  b &= fx;
	  if ((a & (b != 0 ? *y : 24)) != 0)
	    {
	      va /= 3;
	      a += (va != 0) ? (va = a) : 0;
	    }
	  a = va && a;
	  goto lab;
	  y = &va;
	}
    }
}

void
baz (int x, unsigned short int *y)
{
  int fx;
 lab:
    {
      unsigned short int va;
      if (x != 0)
	{
	  c %= a < 0;
	  while (c < 17)
	    ++c;
	  b &= fx;
	  if ((a & (b != 0 ? *y : 25)) != 0)
	    {
	      va /= 3;
	      a += (va != 0) ? (va = a) : 0;
	    }
	  a = va && a;
	  goto lab;
	  y = &va;
	}
    }
}