Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index d77831d4d99afd985a6f5d77bdd27b100eeac877..f6cf96f17a7cc81ecd75b805a04cfed205c38fb8 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2683,8 +2683,7 @@ void Assembler::psrlq(XMMRegister dst, XMMRegister src) { |
emit_sse_operand(dst, src); |
} |
- |
-void Assembler::pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) { |
+void Assembler::pshufd(XMMRegister dst, const Operand& src, uint8_t shuffle) { |
EnsureSpace ensure_space(this); |
EMIT(0x66); |
EMIT(0x0F); |
@@ -2884,6 +2883,22 @@ void Assembler::vpsrad(XMMRegister dst, XMMRegister src, int8_t imm8) { |
EMIT(imm8); |
} |
+void Assembler::vpshufd(XMMRegister dst, const Operand& src, uint8_t shuffle) { |
+ vinstr(0x70, dst, xmm0, src, k66, k0F, kWIG); |
+ EMIT(shuffle); |
+} |
+ |
+void Assembler::vpextrd(const Operand& dst, XMMRegister src, int8_t offset) { |
+ vinstr(0x16, src, xmm0, dst, k66, k0F3A, kWIG); |
+ EMIT(offset); |
+} |
+ |
+void Assembler::vpinsrd(XMMRegister dst, XMMRegister src1, const Operand& src2, |
+ int8_t offset) { |
+ vinstr(0x22, dst, src1, src2, k66, k0F3A, kWIG); |
+ EMIT(offset); |
+} |
+ |
void Assembler::bmi1(byte op, Register reg, Register vreg, const Operand& rm) { |
DCHECK(IsEnabled(BMI1)); |
EnsureSpace ensure_space(this); |