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

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

/* PR target/70110 */
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */

int a, c, d, f, h;
long long b;

static inline void
foo (void)
{
  if (a) 
    foo ();
  b = c;
}

static inline void 
bar (int p)
{
  if (p)
    f = 0; 
  b |= c; 
} 

void
baz (int g, int i)
{
  for (b = d; (d = 1) != 0; )
    {
      if (a)
	foo ();
      b |= c;
      bar (h); 
      bar (g); 
      bar (h); 
      bar (i); 
      bar (h);
    }
}