summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gimplefe-26.c
blob: bc2f3b1d4caed1ce4fb50172b953317a7e758645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target c99_runtime } } */
/* { dg-options "-O -fgimple -fdump-tree-ssa-gimple" } */

#define foo(type, num) \
type __GIMPLE () foo_##num (type a, type b, type c) \
{ \
  type t0; \
  t0_1 = __FMA (a, b, c); \
  return t0_1; \
}

foo(float, 1)
foo(double, 2)
foo(long double, 3)

/* { dg-final { scan-tree-dump-times "__FMA" 3 "ssa" } } */