aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr93073.c
blob: 37e9be12f4d3a7cca71d1bbc84a5a653af782871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR target/93073 */
/* { dg-do compile } */
/* { dg-options "-mvsx -O1 -ffinite-math-only -fno-trapping-math" } */
/* { dg-require-effective-target powerpc_vsx } */

void bar (void);

void
foo (long double x, double y, double z)
{
  for (;;)
    {
      double a = x > 0.0 ? y : z;
      if (a == 0.0)
	bar ();
    }
}