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

Unified Diff: test/cctest/test-disasm-mips.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
Index: test/cctest/test-disasm-mips.cc
diff --git a/test/cctest/test-disasm-mips.cc b/test/cctest/test-disasm-mips.cc
index ca928a61eb68b40206bf2e21bcc1bda8d8bd27f1..1023ca445cc85a64c5422548e9b7276fea29f5ad 100644
--- a/test/cctest/test-disasm-mips.cc
+++ b/test/cctest/test-disasm-mips.cc
@@ -90,6 +90,20 @@ bool DisassembleAndCompare(byte* pc, const char* compare_string) {
if (failure) { \
V8_Fatal(__FILE__, __LINE__, "MIPS Disassembler tests failed.\n"); \
}
+// tests only seleqz, selnez, seleqz.fmt and selnez.fmt
+TEST(Type1) {
+ SET_UP();
+ if (IsMipsArchVariant(kMips32r6)) {
+ COMPARE(seleqz(a0, a1, a2), "00853035 seleqz a0, a1, a2");
+ COMPARE(selnez(a0, a1, a2), "00853037 selnez a0, a1, a2");
+
+ COMPARE(seleqz(S, f0, f1, f2), "45000894 seleqz.S f0, f1, f2");
+ COMPARE(selnez(S, f0, f1, f2), "45000897 selnez.S f0, f1, f2");
+ COMPARE(seleqz(D, f3, f4, f5), "00853035 seleqz.D f3, f4, f5");
+ COMPARE(selnez(D, f3, f4, f5), "00853037 selnez.D f3, f4, f5");
+ }
+ VERIFY_RUN();
+}
TEST(Type0) {

Powered by Google App Engine
This is Rietveld 408576698