summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr82386.c
blob: 8901f2b4cc7b17bbefbb2154f4e342f417311fba (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
/* PR target/82386 */
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */
/* { dg-additional-options "-misel" { target powerpc*-*-* } } */

long long int fs;
int vm;

void
sd (void)
{
  fs = 1;
  vm = 2;
  goto zf;

  if (0)
    {
      int y6 = 0;
      int *uu = &y6;
      short int he;
      int of = 0;

 zf:
      for (;;)
      {
          he = of;
          if (he || (fs |= vm))
            {
              *uu = fs;
              fs += vm;
            }
          if (y6 == vm)
            fs |= he;
          he = y6 || fs;
          fs /= 0;
        }
    }
}