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

Side by Side Diff: test/cctest/test-disasm-mips.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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-assembler-mips64.cc ('k') | test/cctest/test-disasm-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 1083
1084 1084
1085 TEST(ctc1_cfc1_disasm) { 1085 TEST(ctc1_cfc1_disasm) {
1086 SET_UP(); 1086 SET_UP();
1087 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); 1087 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31");
1088 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); 1088 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31");
1089 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); 1089 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR");
1090 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); 1090 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR");
1091 VERIFY_RUN(); 1091 VERIFY_RUN();
1092 } 1092 }
1093
1094 TEST(madd_msub_maddf_msubf) {
1095 SET_UP();
1096 if (IsMipsArchVariant(kMips32r2)) {
1097 COMPARE(madd_s(f4, f6, f8, f10), "4cca4120 madd.s f4, f6, f8, f10");
1098 COMPARE(madd_d(f4, f6, f8, f10), "4cca4121 madd.d f4, f6, f8, f10");
1099 COMPARE(msub_s(f4, f6, f8, f10), "4cca4128 msub.s f4, f6, f8, f10");
1100 COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10");
1101 }
1102 if (IsMipsArchVariant(kMips32r6)) {
1103 COMPARE(maddf_s(f4, f8, f10), "460a4118 maddf.s f4, f8, f10");
1104 COMPARE(maddf_d(f4, f8, f10), "462a4118 maddf.d f4, f8, f10");
1105 COMPARE(msubf_s(f4, f8, f10), "460a4119 msubf.s f4, f8, f10");
1106 COMPARE(msubf_d(f4, f8, f10), "462a4119 msubf.d f4, f8, f10");
1107 }
1108 VERIFY_RUN();
1109 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-mips64.cc ('k') | test/cctest/test-disasm-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698