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

Unified Diff: test/cctest/test-disasm-ia32.cc

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 | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-disasm-ia32.cc
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc
index edcb5c041f9de21203ac99bd41aeb93520fd7bc1..292740ff191a09eb2fe9bc6ed8009dbd7d8e91a1 100644
--- a/test/cctest/test-disasm-ia32.cc
+++ b/test/cctest/test-disasm-ia32.cc
@@ -54,7 +54,6 @@ TEST(DisasmIa320) {
v8::internal::byte buffer[4096];
Assembler assm(isolate, buffer, sizeof buffer);
DummyStaticFunction(NULL); // just bloody use it (DELETE; debugging)
-
// Short immediate instructions
__ adc(eax, 12345678);
__ add(eax, Immediate(12345678));
@@ -458,6 +457,13 @@ TEST(DisasmIa320) {
__ cmpltsd(xmm0, xmm1);
__ andpd(xmm0, xmm1);
+
+ __ psllw(xmm0, 17);
+ __ pslld(xmm0, 17);
+ __ psrlw(xmm0, 17);
+ __ psrld(xmm0, 17);
+ __ psraw(xmm0, 17);
+ __ psrad(xmm0, 17);
__ psllq(xmm0, 17);
__ psllq(xmm0, xmm1);
__ psrlq(xmm0, 17);
@@ -550,6 +556,12 @@ TEST(DisasmIa320) {
__ vxorpd(xmm0, xmm1, xmm2);
__ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vpsllw(xmm0, xmm7, 21);
+ __ vpslld(xmm0, xmm7, 21);
+ __ vpsrlw(xmm0, xmm7, 21);
+ __ vpsrld(xmm0, xmm7, 21);
+ __ vpsraw(xmm0, xmm7, 21);
+ __ vpsrad(xmm0, xmm7, 21);
#define EMIT_SSE2_AVXINSTR(instruction, notUsed1, notUsed2, notUsed3) \
__ v##instruction(xmm7, xmm5, xmm1); \
__ v##instruction(xmm7, xmm5, Operand(edx, 4));
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698