view gcc/testsuite/gcc.dg/gimplefe-26.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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" } } */