Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 9952eb3b659678f11768997de16e269637575458..f23c9336e3dcabe2c59fcba5c0592629918d8a44 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -918,6 +918,26 @@ void MacroAssembler::Cvtsd2si(Register dst, XMMRegister src) { |
} |
+void MacroAssembler::Cvttss2si(Register dst, XMMRegister src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vcvttss2si(dst, src); |
+ } else { |
+ cvttss2si(dst, src); |
+ } |
+} |
+ |
+ |
+void MacroAssembler::Cvttss2si(Register dst, const Operand& src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vcvttss2si(dst, src); |
+ } else { |
+ cvttss2si(dst, src); |
+ } |
+} |
+ |
+ |
void MacroAssembler::Cvttsd2si(Register dst, XMMRegister src) { |
if (CpuFeatures::IsSupported(AVX)) { |
CpuFeatureScope scope(this, AVX); |