view gcc/testsuite/gcc.dg/pr83361.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* PR rtl-optimization/83361 */
/* { dg-do compile } */
/* { dg-options "-O2 -freorder-blocks-and-partition -Wno-div-by-zero" } */

#include <limits.h>

int yz;

void
tq (int z3)
{
  unsigned long long int n8 = (unsigned long long int)INT_MAX + 1;
  int *ey = &yz;

  if (yz == 0)
    {
      int bc;

      yz = 1;
      while (yz != 0)
        {
          *ey *= bc;
          n8 = !!(1 / ((unsigned long long int)yz == n8));
          ey = &z3;
        }

      while (z3 != 0)
        {
        }
    }

  z3 = (n8 != 0) && (*ey != 0);
  z3 = yz / z3;
  if (z3 < 0)
    {
      if (yz != 0)
        yz = 0;
      yz /= 0;
    }
}