Index: test/cctest/test-disasm-mips.cc |
diff --git a/test/cctest/test-disasm-mips.cc b/test/cctest/test-disasm-mips.cc |
index b4f81ec3b13ea7b3e92aa32c263bf6ddf1a103d3..010657d468c245d62a6f4964db108576af706a27 100644 |
--- a/test/cctest/test-disasm-mips.cc |
+++ b/test/cctest/test-disasm-mips.cc |
@@ -1090,3 +1090,20 @@ TEST(ctc1_cfc1_disasm) { |
COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
VERIFY_RUN(); |
} |
+ |
+TEST(madd_msub_maddf_msubf) { |
+ SET_UP(); |
+ if (IsMipsArchVariant(kMips32r2)) { |
+ 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 (IsMipsArchVariant(kMips32r6)) { |
+ 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(); |
+} |