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

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

Issue 2170323002: [x64]: add cmpps/cmppd instructions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« src/x64/assembler-x64.h ('K') | « src/x64/macro-assembler-x64.h ('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-x64.cc
diff --git a/test/cctest/test-disasm-x64.cc b/test/cctest/test-disasm-x64.cc
index 8fd623feafff2112ba229ee3a5744c2203784b19..284ca859bef204843af60fab34eab48c3c4464e2 100644
--- a/test/cctest/test-disasm-x64.cc
+++ b/test/cctest/test-disasm-x64.cc
@@ -500,12 +500,33 @@ TEST(DisasmX64) {
__ pinsrd(xmm5, Operand(rax, 4), 1);
__ cmpps(xmm5, xmm1, 1);
+ __ cmpps(xmm5, Operand(rbx, rcx, times_4, 10000), 1);
__ cmpeqps(xmm5, xmm1);
+ __ cmpeqps(xmm5, Operand(rbx, rcx, times_4, 10000));
__ cmpltps(xmm5, xmm1);
+ __ cmpltps(xmm5, Operand(rbx, rcx, times_4, 10000));
__ cmpleps(xmm5, xmm1);
+ __ cmpleps(xmm5, Operand(rbx, rcx, times_4, 10000));
__ cmpneqps(xmm5, xmm1);
+ __ cmpneqps(xmm5, Operand(rbx, rcx, times_4, 10000));
__ cmpnltps(xmm5, xmm1);
+ __ cmpnltps(xmm5, Operand(rbx, rcx, times_4, 10000));
__ cmpnleps(xmm5, xmm1);
+ __ cmpnleps(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmppd(xmm5, xmm1, 1);
+ __ cmppd(xmm5, Operand(rbx, rcx, times_4, 10000), 1);
+ __ cmpeqpd(xmm5, xmm1);
+ __ cmpeqpd(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmpltpd(xmm5, xmm1);
+ __ cmpltpd(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmplepd(xmm5, xmm1);
+ __ cmplepd(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmpneqpd(xmm5, xmm1);
+ __ cmpneqpd(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmpnltpd(xmm5, xmm1);
+ __ cmpnltpd(xmm5, Operand(rbx, rcx, times_4, 10000));
+ __ cmpnlepd(xmm5, xmm1);
+ __ cmpnlepd(xmm5, Operand(rbx, rcx, times_4, 10000));
__ minps(xmm5, xmm1);
__ minps(xmm5, Operand(rdx, 4));
@@ -628,6 +649,35 @@ TEST(DisasmX64) {
__ vpcmpeqd(xmm15, xmm0, Operand(rbx, rcx, times_4, 10000));
__ vpsllq(xmm0, xmm15, 21);
__ vpsrlq(xmm15, xmm0, 21);
+
+ __ vcmpps(xmm5, xmm4, xmm1, 1);
+ __ vcmpps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000), 1);
+ __ vcmpeqps(xmm5, xmm4, xmm1);
+ __ vcmpeqps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpltps(xmm5, xmm4, xmm1);
+ __ vcmpltps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpleps(xmm5, xmm4, xmm1);
+ __ vcmpleps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpneqps(xmm5, xmm4, xmm1);
+ __ vcmpneqps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpnltps(xmm5, xmm4, xmm1);
+ __ vcmpnltps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpnleps(xmm5, xmm4, xmm1);
+ __ vcmpnleps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmppd(xmm5, xmm4, xmm1, 1);
+ __ vcmppd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000), 1);
+ __ vcmpeqpd(xmm5, xmm4, xmm1);
+ __ vcmpeqpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpltpd(xmm5, xmm4, xmm1);
+ __ vcmpltpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmplepd(xmm5, xmm4, xmm1);
+ __ vcmplepd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpneqpd(xmm5, xmm4, xmm1);
+ __ vcmpneqpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpnltpd(xmm5, xmm4, xmm1);
+ __ vcmpnltpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
+ __ vcmpnlepd(xmm5, xmm4, xmm1);
+ __ vcmpnlepd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000));
}
}
« src/x64/assembler-x64.h ('K') | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698