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

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

Issue 1481493002: (mips) adding simulator support for AUI/DAUI/DAHI/DATI instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips64 compilation error. Created 5 years, 1 month 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 | « 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 32668ab31fd6328818976818d1b04a6acfa5fc80..afce77f425ab9c0ce72d9db198b6423fc981a7f5 100644
--- a/test/cctest/test-disasm-mips64.cc
+++ b/test/cctest/test-disasm-mips64.cc
@@ -405,6 +405,20 @@ TEST(Type0) {
COMPARE(lui(v0, 0xffff),
"3c02ffff lui v0, 0xffff");
+ if (kArchVariant == (kMips64r6)) {
+ COMPARE(aui(a0, a1, 0x1), "3ca40001 aui a0, a1, 0x1");
+ COMPARE(aui(v0, v1, 0xffff), "3c62ffff aui v0, v1, 0xffff");
+
+ COMPARE(daui(a0, a1, 0x1), "74a40001 daui a0, a1, 0x1");
+ COMPARE(daui(v0, v1, 0xffff), "7462ffff daui v0, v1, 0xffff");
+
+ COMPARE(dahi(a0, 0x1), "04860001 dahi a0, 0x1");
+ COMPARE(dahi(v0, 0xffff), "0446ffff dahi v0, 0xffff");
+
+ COMPARE(dati(a0, 0x1), "049e0001 dati a0, 0x1");
+ COMPARE(dati(v0, 0xffff), "045effff dati v0, 0xffff");
+ }
+
COMPARE(sll(a0, a1, 0),
"00052000 sll a0, a1, 0");
COMPARE(sll(s0, s1, 8),
« no previous file with comments | « test/cctest/test-disasm-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698