Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 407703ef8ffb303d4e46f4f35681edb31aa62a8d..f797237af523ab64e50017ee9393e40166a84365 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2877,7 +2877,7 @@ void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { |
void MacroAssembler::Xorps(XMMRegister dst, XMMRegister src) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |
- vxorps(dst, kScratchDoubleReg, src); |
+ vxorps(dst, dst, src); |
} else { |
xorps(dst, src); |
} |
@@ -2886,7 +2886,7 @@ void MacroAssembler::Xorps(XMMRegister dst, XMMRegister src) { |
void MacroAssembler::Xorps(XMMRegister dst, const Operand& src) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |
- vxorps(dst, kScratchDoubleReg, src); |
+ vxorps(dst, dst, src); |
} else { |
xorps(dst, src); |
} |