view gcc/testsuite/gcc.dg/gimplefe-26.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
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" } } */