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

Unified Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 2695613004: Add several SIMD opcodes to IA32 (Closed)
Patch Set: Fix debug test Created 3 years, 10 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
Index: src/compiler/ia32/code-generator-ia32.cc
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc
index 8188a92c1e8cd4ee049cdef15f2612e4e1f8869d..8bc4ab9efe3574ab67a5a37489f02356ae40dbcc 100644
--- a/src/compiler/ia32/code-generator-ia32.cc
+++ b/src/compiler/ia32/code-generator-ia32.cc
@@ -1901,6 +1901,30 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
__ xchg(i.InputRegister(index), operand);
break;
}
+ case kIA32Int32x4Create: {
+ XMMRegister dst = i.OutputSimd128Register();
+ __ movd(dst, i.InputOperand(0));
+ __ shufps(dst, dst, 0x0);
+ break;
+ }
+ case kIA32Int32x4ExtractLane: {
+ CpuFeatureScope sse_scope(masm(), SSE4_1);
+ __ Pextrd(i.OutputRegister(), i.InputSimd128Register(0), i.InputInt8(1));
+ break;
+ }
+ case kIA32Int32x4ReplaceLane: {
+ CpuFeatureScope sse_scope(masm(), SSE4_1);
+ __ Pinsrd(i.OutputSimd128Register(), i.InputOperand(2), i.InputInt8(1));
+ break;
+ }
+ case kIA32Int32x4Add: {
+ __ paddd(i.OutputSimd128Register(), i.InputSimd128Register(1));
bbudge 2017/02/15 16:07:31 If it's planned to use AVX, then we should make th
Jing 2017/02/16 05:11:17 To add AVX version ,we do have some code needed to
bbudge 2017/02/17 00:44:39 OK.
+ break;
+ }
+ case kIA32Int32x4Sub: {
+ __ psubd(i.OutputSimd128Register(), i.InputSimd128Register(1));
+ break;
+ }
case kCheckedLoadInt8:
ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_b);
break;
« no previous file with comments | « BUILD.gn ('k') | src/compiler/ia32/instruction-codes-ia32.h » ('j') | src/ia32/assembler-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698