Index: src/x64/lithium-gap-resolver-x64.cc |
diff --git a/src/x64/lithium-gap-resolver-x64.cc b/src/x64/lithium-gap-resolver-x64.cc |
index cedd0256dd0e1107374c6caede34ac239d50b9ed..c3c617c456d03c40a6c1dcbc627116aae78115f1 100644 |
--- a/src/x64/lithium-gap-resolver-x64.cc |
+++ b/src/x64/lithium-gap-resolver-x64.cc |
@@ -214,7 +214,7 @@ void LGapResolver::EmitMove(int index) { |
} else if (source->IsDoubleRegister()) { |
XMMRegister src = cgen_->ToDoubleRegister(source); |
if (destination->IsDoubleRegister()) { |
- __ movsd(cgen_->ToDoubleRegister(destination), src); |
+ __ movaps(cgen_->ToDoubleRegister(destination), src); |
} else { |
ASSERT(destination->IsDoubleStackSlot()); |
__ movsd(cgen_->ToOperand(destination), src); |
@@ -273,9 +273,9 @@ void LGapResolver::EmitSwap(int index) { |
// Swap two double registers. |
XMMRegister source_reg = cgen_->ToDoubleRegister(source); |
XMMRegister destination_reg = cgen_->ToDoubleRegister(destination); |
- __ movsd(xmm0, source_reg); |
- __ movsd(source_reg, destination_reg); |
- __ movsd(destination_reg, xmm0); |
+ __ movaps(xmm0, source_reg); |
+ __ movaps(source_reg, destination_reg); |
+ __ movaps(destination_reg, xmm0); |
} else if (source->IsDoubleRegister() || destination->IsDoubleRegister()) { |
// Swap a double register and a double stack slot. |