gcc/testsuite/gcc.dg/fma-4.c
raw| 1 | /* { dg-options "-O2 -fdump-tree-widening_mul" } */ |
| 2 | |
| 3 | float |
| 4 | f1 (float a, float b, float c) |
| 5 | { |
| 6 | return -(a * b) - c; |
| 7 | } |
| 8 | |
| 9 | double |
| 10 | f2 (double a, double b, double c) |
| 11 | { |
| 12 | return -(a * b) - c; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump-times { = \.FNMS \(} 2 "widening_mul" { target { scalar_all_fma && { ! loongarch*-*-* } } } } } */ |