view gcc/testsuite/gcc.target/powerpc/pr93658.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O3 -fstack-protector-strong -mdejagnu-cpu=power8" } */
/* { dg-require-effective-target powerpc_vsx_ok } */

/* PR93658: Failure compiling this test is an infinite loop in LRA's
   process_address(), so set a short timeout limit.  */
/* { dg-timeout 5 } */

void bar();
char b;
void
foo (void)
{
  char a;
  int d = b;
  char *e = &a;
  while (d)
    *e++ = --d;
  bar ();
}