view gcc/testsuite/gcc.dg/pr83985.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* PR rtl-optimization/83985 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-additional-options "-mcpu=e300c3 -mtune=e300c3" { target { powerpc*-*-* && ilp32 } } } */

long long int v;

void
foo (int x)
{
  if (x == 0)
    return;

  while (v < 2)
    {
      signed char *a;
      v /= x;
      a = v == 0 ? (signed char *) &x : (signed char *) &v;
      ++*a;
      ++v;
    }

  while (1)
    ;
}