Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 599e4034094b644001d80efed3ba63b8cbcd25c1..82eef6e26754c387615933937cdbccee1a634886 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2669,6 +2669,17 @@ void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { |
} |
+void MacroAssembler::Roundsd(XMMRegister dst, XMMRegister src, |
+ RoundingMode mode) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vroundsd(dst, dst, src, mode); |
+ } else { |
+ roundsd(dst, src, mode); |
+ } |
+} |
+ |
+ |
void MacroAssembler::Sqrtsd(XMMRegister dst, XMMRegister src) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |