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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-disasm-mips.cc ('k') | no next file » | 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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1265
1266 1266
1267 TEST(ctc1_cfc1_disasm) { 1267 TEST(ctc1_cfc1_disasm) {
1268 SET_UP(); 1268 SET_UP();
1269 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); 1269 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31");
1270 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); 1270 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31");
1271 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); 1271 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR");
1272 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); 1272 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR");
1273 VERIFY_RUN(); 1273 VERIFY_RUN();
1274 } 1274 }
1275
1276 TEST(madd_msub_maddf_msubf) {
1277 SET_UP();
1278 if (kArchVariant == kMips64r2) {
1279 COMPARE(madd_s(f4, f6, f8, f10), "4cca4120 madd.s f4, f6, f8, f10");
1280 COMPARE(madd_d(f4, f6, f8, f10), "4cca4121 madd.d f4, f6, f8, f10");
1281 COMPARE(msub_s(f4, f6, f8, f10), "4cca4128 msub.s f4, f6, f8, f10");
1282 COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10");
1283 }
1284 if (kArchVariant == kMips64r6) {
1285 COMPARE(maddf_s(f4, f8, f10), "460a4118 maddf.s f4, f8, f10");
1286 COMPARE(maddf_d(f4, f8, f10), "462a4118 maddf.d f4, f8, f10");
1287 COMPARE(msubf_s(f4, f8, f10), "460a4119 msubf.s f4, f8, f10");
1288 COMPARE(msubf_d(f4, f8, f10), "462a4119 msubf.d f4, f8, f10");
1289 }
1290 VERIFY_RUN();
1291 }
OLDNEW
« 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