Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: src/ia32/assembler-ia32.h

Issue 2747783004: [ia32] Supplement shift instructions for SIMD (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/assembler-ia32.h
diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h
index 44c1f50a872b487cbaec6d4bc49d4ea45e105882..6fd334723fcf97d4ccd3ea2ed7f314d076c7418a 100644
--- a/src/ia32/assembler-ia32.h
+++ b/src/ia32/assembler-ia32.h
@@ -1061,8 +1061,12 @@ class Assembler : public AssemblerBase {
void ptest(XMMRegister dst, XMMRegister src);
+ void psllw(XMMRegister reg, int8_t shift);
void pslld(XMMRegister reg, int8_t shift);
+ void psrlw(XMMRegister reg, int8_t shift);
void psrld(XMMRegister reg, int8_t shift);
+ void psraw(XMMRegister reg, int8_t shift);
+ void psrad(XMMRegister reg, int8_t shift);
void psllq(XMMRegister reg, int8_t shift);
void psllq(XMMRegister dst, XMMRegister src);
void psrlq(XMMRegister reg, int8_t shift);
@@ -1306,6 +1310,13 @@ class Assembler : public AssemblerBase {
}
void vss(byte op, XMMRegister dst, XMMRegister src1, const Operand& src2);
+ void vpsllw(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpslld(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpsrlw(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpsrld(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpsraw(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpsrad(XMMRegister dst, XMMRegister src, int8_t imm8);
+
// BMI instruction
void andn(Register dst, Register src1, Register src2) {
andn(dst, src1, Operand(src2));
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698