gcc/testsuite/gcc.dg/gimplefe-26.c
raw| 1 | /* { dg-do compile { target scalar_all_fma } } */ |
| 2 | /* { dg-options "-O -fgimple -fdump-tree-ssa-gimple" } */ |
| 3 | |
| 4 | #define foo(type, num) \ |
| 5 | type __GIMPLE () foo_##num (type a, type b, type c) \ |
| 6 | { \ |
| 7 | type t0; \ |
| 8 | t0_1 = .FMA (a, b, c); \ |
| 9 | return t0_1; \ |
| 10 | } |
| 11 | |
| 12 | foo(float, 1) |
| 13 | foo(double, 2) |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump-times {\.FMA} 2 "ssa" } } */ |