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

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

/* { dg-options "-O2 -fdump-rtl-ira-details-blocks" } */
/* { dg-require-effective-target c99_runtime } */

#include <math.h>

void foo (float *);

void
f1 (float *x)
{
  x[0] = sqrtf (x[0]);
}

void
f2 (float *x)
{
  sqrtf (x[0]);
  foo (x);
}

void
f3 (float *x)
{
  acosf (x[0]);
  foo (x);
}

/* { dg-final { scan-rtl-dump-not "Invalid sum" "ira" } } */