Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index df010e04fd1033a445e0dc8e2993bc7257bc4b92..599e4034094b644001d80efed3ba63b8cbcd25c1 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2669,6 +2669,26 @@ void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { |
} |
+void MacroAssembler::Sqrtsd(XMMRegister dst, XMMRegister src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vsqrtsd(dst, dst, src); |
+ } else { |
+ sqrtsd(dst, src); |
+ } |
+} |
+ |
+ |
+void MacroAssembler::Sqrtsd(XMMRegister dst, const Operand& src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vsqrtsd(dst, dst, src); |
+ } else { |
+ sqrtsd(dst, src); |
+ } |
+} |
+ |
+ |
void MacroAssembler::Ucomiss(XMMRegister src1, XMMRegister src2) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |