Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 99daa1b00a447407e24f30bb434cf26881c9cdc6..8b088bc921a56bf828668ab261d3fe45f146458d 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -1705,9 +1705,9 @@ void MacroAssembler::Trunc_ul_d(FPURegister fd, Register rs, |
Label simple_convert, done, fail; |
if (result.is_valid()) { |
mov(result, zero_reg); |
- Move(kDoubleRegZero, 0.0); |
+ Move(scratch, -1.0); |
// If fd < 0 or unordered, then the conversion fails. |
- BranchF(&fail, &fail, lt, fd, kDoubleRegZero); |
+ BranchF(&fail, &fail, lt, fd, scratch); |
} |
// Load 2^63 into scratch as its double representation. |
@@ -1753,9 +1753,9 @@ void MacroAssembler::Trunc_ul_s(FPURegister fd, Register rs, |
Label simple_convert, done, fail; |
if (result.is_valid()) { |
mov(result, zero_reg); |
- Move(kDoubleRegZero, 0.0); |
+ Move(scratch, -1.0f); |
// If fd < 0 or unordered, then the conversion fails. |
- BranchF32(&fail, &fail, lt, fd, kDoubleRegZero); |
+ BranchF32(&fail, &fail, lt, fd, scratch); |
} |
// Load 2^63 into scratch as its float representation. |