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

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

Issue 2916093002: [ia32][wasm] Support AVX instructions for I32x4Splat/ReplaceLane/ExtractLane (Closed)
Patch Set: Created 3 years, 7 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 | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | 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 07aee910b3400a94ff6a85663371eea517943398..77673697e4dde31440f459cf490e408e8776f91b 100644
--- a/src/ia32/assembler-ia32.h
+++ b/src/ia32/assembler-ia32.h
@@ -1127,7 +1127,11 @@ class Assembler : public AssemblerBase {
void psllq(XMMRegister dst, XMMRegister src);
void psrlq(XMMRegister reg, int8_t shift);
void psrlq(XMMRegister dst, XMMRegister src);
- void pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle);
+
+ void pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
+ pshufd(dst, Operand(src), shuffle);
+ }
+ void pshufd(XMMRegister dst, const Operand& src, uint8_t shuffle);
void pextrd(Register dst, XMMRegister src, int8_t offset) {
pextrd(Operand(dst), src, offset);
}
@@ -1384,6 +1388,21 @@ class Assembler : public AssemblerBase {
void vpsraw(XMMRegister dst, XMMRegister src, int8_t imm8);
void vpsrad(XMMRegister dst, XMMRegister src, int8_t imm8);
+ void vpshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
+ vpshufd(dst, Operand(src), shuffle);
+ }
+ void vpshufd(XMMRegister dst, const Operand& src, uint8_t shuffle);
+ void vpextrd(Register dst, XMMRegister src, int8_t offset) {
+ vpextrd(Operand(dst), src, offset);
+ }
+ void vpextrd(const Operand& dst, XMMRegister src, int8_t offset);
+ void vpinsrd(XMMRegister dst, XMMRegister src1, Register src2,
+ int8_t offset) {
+ vpinsrd(dst, src1, Operand(src2), offset);
+ }
+ void vpinsrd(XMMRegister dst, XMMRegister src1, const Operand& src2,
+ int8_t offset);
+
void vcvtdq2ps(XMMRegister dst, XMMRegister src) {
vcvtdq2ps(dst, Operand(src));
}
@@ -1397,6 +1416,15 @@ class Assembler : public AssemblerBase {
vinstr(0x5B, dst, xmm0, src, kF3, k0F, kWIG);
}
+ void vmovd(XMMRegister dst, Register src) { vmovd(dst, Operand(src)); }
+ void vmovd(XMMRegister dst, const Operand& src) {
+ vinstr(0x6E, dst, xmm0, src, k66, k0F, kWIG);
+ }
+ void vmovd(Register dst, XMMRegister src) { movd(Operand(dst), src); }
+ void vmovd(const Operand& dst, XMMRegister src) {
+ vinstr(0x7E, src, xmm0, dst, k66, k0F, kWIG);
+ }
+
// BMI instruction
void andn(Register dst, Register src1, Register src2) {
andn(dst, src1, Operand(src2));
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698