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

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

Issue 2747103002: [ia32] Add minps/maxps and AVX v_ps/v_pd for add/sub/mul/div/min/max (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 292740ff191a09eb2fe9bc6ed8009dbd7d8e91a1..3331521df99266dd15fd9f5a607442e4971f6ccb 100644
--- a/test/cctest/test-disasm-ia32.cc
+++ b/test/cctest/test-disasm-ia32.cc
@@ -424,6 +424,10 @@ TEST(DisasmIa320) {
__ mulps(xmm1, Operand(ebx, ecx, times_4, 10000));
__ divps(xmm1, xmm0);
__ divps(xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ minps(xmm1, xmm0);
+ __ minps(xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ maxps(xmm1, xmm0);
+ __ maxps(xmm1, Operand(ebx, ecx, times_4, 10000));
__ ucomiss(xmm0, xmm1);
__ ucomiss(xmm0, Operand(ebx, ecx, times_4, 10000));
@@ -550,11 +554,35 @@ TEST(DisasmIa320) {
__ vandps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
__ vxorps(xmm0, xmm1, xmm2);
__ vxorps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vaddps(xmm0, xmm1, xmm2);
+ __ vaddps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vmulps(xmm0, xmm1, xmm2);
+ __ vmulps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vsubps(xmm0, xmm1, xmm2);
+ __ vsubps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vminps(xmm0, xmm1, xmm2);
+ __ vminps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vdivps(xmm0, xmm1, xmm2);
+ __ vdivps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vmaxps(xmm0, xmm1, xmm2);
+ __ vmaxps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
__ vandpd(xmm0, xmm1, xmm2);
__ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
__ vxorpd(xmm0, xmm1, xmm2);
__ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vaddpd(xmm0, xmm1, xmm2);
+ __ vaddpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vmulpd(xmm0, xmm1, xmm2);
+ __ vmulpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vsubpd(xmm0, xmm1, xmm2);
+ __ vsubpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vminpd(xmm0, xmm1, xmm2);
+ __ vminpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vdivpd(xmm0, xmm1, xmm2);
+ __ vdivpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
+ __ vmaxpd(xmm0, xmm1, xmm2);
+ __ vmaxpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
__ vpsllw(xmm0, xmm7, 21);
__ vpslld(xmm0, xmm7, 21);
« 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