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

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

Issue 1046873004: MIPS: Refactor simulator and add selection instructions for r6. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« test/cctest/test-assembler-mips.cc ('K') | « test/cctest/test-disasm-mips.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-mips64.cc
diff --git a/test/cctest/test-disasm-mips64.cc b/test/cctest/test-disasm-mips64.cc
index a2a93c611a70fda632b5d4ee47ff2b6bc6b7b4b0..638cfee3b82a9998caf1efc680a60f6ba02f9f15 100644
--- a/test/cctest/test-disasm-mips64.cc
+++ b/test/cctest/test-disasm-mips64.cc
@@ -92,6 +92,25 @@ if (failure) { \
}
+TEST(Type1) {
+ if (kArchVariant == kMips64r6) {
+ SET_UP();
+ COMPARE(seleqz(a0, a1, a2), "00853035 seleqz a0, a1, a2");
+ COMPARE(selnez(a0, a1, a2), "00853037 selnez a0, a1, a2");
+
+
+ COMPARE(seleqz(D, f3, f4, f5), "462428d4 seleqz.D f4, f5, f3");
+ COMPARE(selnez(D, f3, f4, f5), "462428d7 selnez.D f4, f5, f3");
+
+ /*COMPARE(min(D, f3, f4, f5),
+ "462428dc min.D f4, f5, f3");
+ COMPARE(max(D, f3, f4, f5),
+ "462428de max.D f4, f5, f3");*/
+ VERIFY_RUN();
+ }
+}
+
+
TEST(Type0) {
SET_UP();
« test/cctest/test-assembler-mips.cc ('K') | « test/cctest/test-disasm-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698