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

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

Issue 1143473003: Revert of MIPS: Add float instructions and test coverage, part one (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 adb9aa6be981cdbe806dcc29ea386d8f591eb88a..492265b2e7d508462798109c5f8288bf70f7e317 100644
--- a/test/cctest/test-disasm-mips64.cc
+++ b/test/cctest/test-disasm-mips64.cc
@@ -674,92 +674,18 @@ TEST(Type0) {
TEST(Type1) {
- SET_UP();
if (kArchVariant == kMips64r6) {
+ SET_UP();
COMPARE(seleqz(a0, a1, a2), "00a62035 seleqz a0, a1, a2");
COMPARE(selnez(a0, a1, a2), "00a62037 selnez a0, a1, a2");
COMPARE(seleqz(D, f3, f4, f5), "462520d4 seleqz.d f3, f4, f5");
COMPARE(selnez(D, f3, f4, f5), "462520d7 selnez.d f3, f4, f5");
- COMPARE(seleqz(S, f3, f4, f5), "460520d4 seleqz.s f3, f4, f5");
- COMPARE(selnez(S, f3, f4, f5), "460520d7 selnez.s f3, f4, f5");
COMPARE(min_d(f3, f4, f5), "462520dc min.d f3, f4, f5");
COMPARE(max_d(f3, f4, f5), "462520de max.d f3, f4, f5");
-
- COMPARE(sel(S, f3, f4, f5), "460520d0 sel.s f3, f4, f5");
- COMPARE(sel(D, f3, f4, f5), "462520d0 sel.d f3, f4, f5");
-
COMPARE(rint_d(f8, f6), "4620321a rint.d f8, f6");
-
- COMPARE(min_s(f3, f4, f5), "460520dc min.s f3, f4, f5");
- COMPARE(max_s(f3, f4, f5), "460520de max.s f3, f4, f5");
-
- COMPARE(rint(S, f8, f6), "4600321a rint.s f8, f6");
-
- COMPARE(mina_d(f3, f4, f5), "462520dd mina.d f3, f4, f5");
- COMPARE(mina_s(f3, f4, f5), "460520dd mina.s f3, f4, f5");
-
- COMPARE(maxa_d(f3, f4, f5), "462520df maxa.d f3, f4, f5");
- COMPARE(maxa_s(f3, f4, f5), "460520df maxa.s f3, f4, f5");
+ VERIFY_RUN();
}
- COMPARE(trunc_w_d(f8, f6), "4620320d trunc.w.d f8, f6");
- COMPARE(trunc_w_s(f8, f6), "4600320d trunc.w.s f8, f6");
-
- COMPARE(round_w_s(f8, f6), "4600320c round.w.s f8, f6");
- COMPARE(round_w_d(f8, f6), "4620320c round.w.d f8, f6");
-
- COMPARE(round_l_s(f8, f6), "46003208 round.l.s f8, f6");
- COMPARE(round_l_d(f8, f6), "46203208 round.l.d f8, f6");
-
- COMPARE(floor_w_s(f8, f6), "4600320f floor.w.s f8, f6");
- COMPARE(floor_w_d(f8, f6), "4620320f floor.w.d f8, f6");
-
- COMPARE(floor_l_s(f8, f6), "4600320b floor.l.s f8, f6");
- COMPARE(floor_l_d(f8, f6), "4620320b floor.l.d f8, f6");
-
- COMPARE(ceil_w_s(f8, f6), "4600320e ceil.w.s f8, f6");
- COMPARE(ceil_w_d(f8, f6), "4620320e ceil.w.d f8, f6");
-
- COMPARE(ceil_l_s(f8, f6), "4600320a ceil.l.s f8, f6");
- COMPARE(ceil_l_d(f8, f6), "4620320a ceil.l.d f8, f6");
-
- COMPARE(sub_s(f10, f8, f6), "46064281 sub.s f10, f8, f6");
- COMPARE(sub_d(f10, f8, f6), "46264281 sub.d f10, f8, f6");
-
- COMPARE(sqrt_s(f8, f6), "46003204 sqrt.s f8, f6");
- COMPARE(sqrt_d(f8, f6), "46203204 sqrt.d f8, f6");
-
- COMPARE(neg_s(f8, f6), "46003207 neg.s f8, f6");
- COMPARE(neg_d(f8, f6), "46203207 neg.d f8, f6");
-
- COMPARE(mul_s(f8, f6, f4), "46043202 mul.s f8, f6, f4");
- COMPARE(mul_d(f8, f6, f4), "46243202 mul.d f8, f6, f4");
-
- COMPARE(rsqrt_s(f8, f6), "46003216 rsqrt.s f8, f6");
- COMPARE(rsqrt_d(f8, f6), "46203216 rsqrt.d f8, f6");
-
- COMPARE(recip_s(f8, f6), "46003215 recip.s f8, f6");
- COMPARE(recip_d(f8, f6), "46203215 recip.d f8, f6");
-
- COMPARE(mov_s(f6, f4), "46002186 mov.s f6, f4");
- COMPARE(mov_d(f6, f4), "46202186 mov.d f6, f4");
- if (kArchVariant == kMips64r2) {
- COMPARE(trunc_l_d(f8, f6), "46203209 trunc.l.d f8, f6");
- COMPARE(trunc_l_s(f8, f6), "46003209 trunc.l.s f8, f6");
-
- COMPARE(movz_s(f6, f4, t0), "460c2192 movz.s f6, f4, t0");
- COMPARE(movz_d(f6, f4, t0), "462c2192 movz.d f6, f4, t0");
-
- COMPARE(movt_s(f6, f4, 4), "46112191 movt.s f6, f4, cc(1)");
- COMPARE(movt_d(f6, f4, 4), "46312191 movt.d f6, f4, cc(1)");
-
- COMPARE(movf_s(f6, f4, 4), "46102191 movf.s f6, f4, cc(1)");
- COMPARE(movf_d(f6, f4, 4), "46302191 movf.d f6, f4, cc(1)");
-
- COMPARE(movn_s(f6, f4, t0), "460c2193 movn.s f6, f4, t0");
- COMPARE(movn_d(f6, f4, t0), "462c2193 movn.d f6, f4, t0");
- }
- 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