summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gimplefe-26.c
blob: f4dbdb18bb66ad52f0724070df3e7ae90e56d4be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile { target scalar_all_fma } } */
/* { 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)

/* { dg-final { scan-tree-dump-times {\.FMA} 2 "ssa" } } */