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(); |
+} |