Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 1b9ac2fbd3d6a0faa3906e3cc97dca70c84dd781..9a0635669d932dda9387f68097a391c4ec8016e1 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -2304,13 +2304,11 @@ void MacroAssembler::Move(FPURegister dst, float imm) { |
void MacroAssembler::Move(FPURegister dst, double imm) { |
- static const DoubleRepresentation minus_zero(-0.0); |
- static const DoubleRepresentation zero(0.0); |
- DoubleRepresentation value_rep(imm); |
+ int64_t imm_bits = bit_cast<int64_t>(imm); |
// Handle special values first. |
- if (value_rep == zero && has_double_zero_reg_set_) { |
+ if (imm_bits == bit_cast<int64_t>(0.0) && has_double_zero_reg_set_) { |
mov_d(dst, kDoubleRegZero); |
- } else if (value_rep == minus_zero && has_double_zero_reg_set_) { |
+ } else if (imm_bits == bit_cast<int64_t>(-0.0) && has_double_zero_reg_set_) { |
neg_d(dst, kDoubleRegZero); |
} else { |
uint32_t lo, hi; |