summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46307.c
blob: c308b5669f2a758b82f14c1ac3b15430eb879eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR debug/46307 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

double fma (double, double, double);

double
foo (double x, double y, double z)
{
  double a = x * y + z;
  double b = __builtin_fma (x, y, z);
  double c = fma (x, y, z);
  return x / y / z;
}