Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 5e8333d11a7ca9539ef343c5ae80524fb43b2c1b..7a9b963488b7909f0143dd06003d2d0eafc52b1d 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2381,6 +2381,26 @@ void Assembler::ptest(XMMRegister dst, XMMRegister src) { |
} |
+void Assembler::pslld(XMMRegister reg, int8_t shift) { |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x66); |
+ EMIT(0x0F); |
+ EMIT(0x72); |
+ emit_sse_operand(esi, reg); // esi == 6 |
+ EMIT(shift); |
+} |
+ |
+ |
+void Assembler::psrld(XMMRegister reg, int8_t shift) { |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x66); |
+ EMIT(0x0F); |
+ EMIT(0x72); |
+ emit_sse_operand(edx, reg); // edx == 2 |
+ EMIT(shift); |
+} |
+ |
+ |
void Assembler::psllq(XMMRegister reg, int8_t shift) { |
EnsureSpace ensure_space(this); |
EMIT(0x66); |