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

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

Issue 2313623002: MIPS: Implement MADD.S, MSUB, MADDF and MSUBF. (Closed)
Patch Set: Added blocks and unreachable sections. Created 4 years, 3 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 | « 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 dc6f34e462fcdbf6a0d80f4ac66a34a2180f7ec3..f2ec2527e78228e86b1677b88d4e3948e9c7dd91 100644
--- a/test/cctest/test-disasm-mips64.cc
+++ b/test/cctest/test-disasm-mips64.cc
@@ -1272,3 +1272,20 @@ TEST(ctc1_cfc1_disasm) {
COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR");
VERIFY_RUN();
}
+
+TEST(madd_msub_maddf_msubf) {
+ SET_UP();
+ if (kArchVariant == kMips64r2) {
+ COMPARE(madd_s(f4, f6, f8, f10), "4cca4120 madd.s f4, f6, f8, f10");
+ COMPARE(madd_d(f4, f6, f8, f10), "4cca4121 madd.d f4, f6, f8, f10");
+ COMPARE(msub_s(f4, f6, f8, f10), "4cca4128 msub.s f4, f6, f8, f10");
+ COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10");
+ }
+ if (kArchVariant == kMips64r6) {
+ COMPARE(maddf_s(f4, f8, f10), "460a4118 maddf.s f4, f8, f10");
+ COMPARE(maddf_d(f4, f8, f10), "462a4118 maddf.d f4, f8, f10");
+ COMPARE(msubf_s(f4, f8, f10), "460a4119 msubf.s f4, f8, f10");
+ COMPARE(msubf_d(f4, f8, f10), "462a4119 msubf.d f4, f8, f10");
+ }
+ VERIFY_RUN();
+}
« 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