Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index d5cf0940d88d5d07dd4169168c845186fe2998eb..092d8384cdee8e11232b602e6f2f5724e019e88e 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -863,6 +863,18 @@ void MacroAssembler::Cvtqsi2sd(XMMRegister dst, Register src) { |
} |
+void MacroAssembler::Cvtqsi2sd(XMMRegister dst, const Operand& src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vxorpd(dst, dst, dst); |
+ vcvtqsi2sd(dst, dst, src); |
+ } else { |
+ xorpd(dst, dst); |
+ cvtqsi2sd(dst, src); |
+ } |
+} |
+ |
+ |
void MacroAssembler::Cvtsd2si(Register dst, XMMRegister src) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |