| Index: test/cctest/test-assembler-mips.cc
|
| diff --git a/test/cctest/test-assembler-mips.cc b/test/cctest/test-assembler-mips.cc
|
| index 08d3c606c049ca626120e68b8503f2f8845dc637..191589a73a66a01d3bf4dbd701303e16bce2c99b 100644
|
| --- a/test/cctest/test-assembler-mips.cc
|
| +++ b/test/cctest/test-assembler-mips.cc
|
| @@ -5457,12 +5457,14 @@ void helper_madd_msub_maddf_msubf(F func) {
|
|
|
| (CALL_GENERATED_CODE(isolate, f, &tc, 0, 0, 0, 0));
|
|
|
| - T res_add = tc.fr + (tc.fs * tc.ft);
|
| + T res_add = 0;
|
| T res_sub = 0;
|
| if (IsMipsArchVariant(kMips32r2)) {
|
| + res_add = (tc.fs * tc.ft) + tc.fr;
|
| res_sub = (tc.fs * tc.ft) - tc.fr;
|
| } else if (IsMipsArchVariant(kMips32r6)) {
|
| - res_sub = tc.fr - (tc.fs * tc.ft);
|
| + res_add = std::fma(tc.fs, tc.ft, tc.fr);
|
| + res_sub = std::fma(-tc.fs, tc.ft, tc.fr);
|
| } else {
|
| UNREACHABLE();
|
| }
|
|
|