Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 403ea49dfc30ca1c14a91de46289c177f2a09367..ef9691242ae843b491afd1ec5c3411441256845e 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -2642,7 +2642,7 @@ void MacroAssembler::Move(Register dst, Register src) { |
void MacroAssembler::Move(Register dst, const Immediate& x) { |
- if (x.is_zero()) { |
+ if (x.is_zero() && RelocInfo::IsNone(x.rmode_)) { |
xor_(dst, dst); // Shorter than mov of 32-bit immediate 0. |
} else { |
mov(dst, x); |