Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 64c2ec8f3bac642c6f0136fde8476fdc326b9364..6dacc011df3be1672136a6d4f521c74a368a00d3 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2882,6 +2882,14 @@ void MacroAssembler::Movq(Register dst, XMMRegister src) { |
} |
} |
+void MacroAssembler::Movmskps(Register dst, XMMRegister src) { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(this, AVX); |
+ vmovmskps(dst, src); |
+ } else { |
+ movmskps(dst, src); |
+ } |
+} |
void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { |
if (CpuFeatures::IsSupported(AVX)) { |