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

Side by Side Diff: test/cctest/test-disasm-mips.cc

Issue 1481023002: MIPS: Fixup disasembler for ctc1 and cfc1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « src/mips64/disasm-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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 IsFp64Mode()) { 1059 IsFp64Mode()) {
1060 COMPARE(cvt_d_l(f22, f24), "46a0c5a1 cvt.d.l f22, f24"); 1060 COMPARE(cvt_d_l(f22, f24), "46a0c5a1 cvt.d.l f22, f24");
1061 COMPARE(cvt_l_d(f22, f24), "4620c5a5 cvt.l.d f22, f24"); 1061 COMPARE(cvt_l_d(f22, f24), "4620c5a5 cvt.l.d f22, f24");
1062 1062
1063 COMPARE(cvt_s_l(f22, f24), "46a0c5a0 cvt.s.l f22, f24"); 1063 COMPARE(cvt_s_l(f22, f24), "46a0c5a0 cvt.s.l f22, f24");
1064 COMPARE(cvt_l_s(f22, f24), "4600c5a5 cvt.l.s f22, f24"); 1064 COMPARE(cvt_l_s(f22, f24), "4600c5a5 cvt.l.s f22, f24");
1065 } 1065 }
1066 1066
1067 VERIFY_RUN(); 1067 VERIFY_RUN();
1068 } 1068 }
1069
1070
1071 TEST(ctc1_cfc1_disasm) {
1072 SET_UP();
1073 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31");
1074 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31");
1075 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR");
1076 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR");
1077 VERIFY_RUN();
1078 }
OLDNEW
« no previous file with comments | « src/mips64/disasm-mips64.cc ('k') | test/cctest/test-disasm-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698