OLD | NEW |
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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 "00601050 clz v0, v1"); | 676 "00601050 clz v0, v1"); |
677 } else { | 677 } else { |
678 COMPARE(clz(a0, a1), | 678 COMPARE(clz(a0, a1), |
679 "70a42020 clz a0, a1"); | 679 "70a42020 clz a0, a1"); |
680 COMPARE(clz(s6, s7), | 680 COMPARE(clz(s6, s7), |
681 "72f6b020 clz s6, s7"); | 681 "72f6b020 clz s6, s7"); |
682 COMPARE(clz(v0, v1), | 682 COMPARE(clz(v0, v1), |
683 "70621020 clz v0, v1"); | 683 "70621020 clz v0, v1"); |
684 } | 684 } |
685 | 685 |
| 686 COMPARE(seb(a0, a1), "7c052420 seb a0, a1"); |
| 687 COMPARE(seb(s6, s7), "7c17b420 seb s6, s7"); |
| 688 COMPARE(seb(v0, v1), "7c031420 seb v0, v1"); |
| 689 |
| 690 COMPARE(seh(a0, a1), "7c052620 seh a0, a1"); |
| 691 COMPARE(seh(s6, s7), "7c17b620 seh s6, s7"); |
| 692 COMPARE(seh(v0, v1), "7c031620 seh v0, v1"); |
| 693 |
| 694 COMPARE(wsbh(a0, a1), "7c0520a0 wsbh a0, a1"); |
| 695 COMPARE(wsbh(s6, s7), "7c17b0a0 wsbh s6, s7"); |
| 696 COMPARE(wsbh(v0, v1), "7c0310a0 wsbh v0, v1"); |
| 697 |
| 698 COMPARE(dsbh(a0, a1), "7c0520a4 dsbh a0, a1"); |
| 699 COMPARE(dsbh(s6, s7), "7c17b0a4 dsbh s6, s7"); |
| 700 COMPARE(dsbh(v0, v1), "7c0310a4 dsbh v0, v1"); |
| 701 |
| 702 COMPARE(dshd(a0, a1), "7c052164 dshd a0, a1"); |
| 703 COMPARE(dshd(s6, s7), "7c17b164 dshd s6, s7"); |
| 704 COMPARE(dshd(v0, v1), "7c031164 dshd v0, v1"); |
| 705 |
686 COMPARE(ins_(a0, a1, 31, 1), | 706 COMPARE(ins_(a0, a1, 31, 1), |
687 "7ca4ffc4 ins a0, a1, 31, 1"); | 707 "7ca4ffc4 ins a0, a1, 31, 1"); |
688 COMPARE(ins_(s6, s7, 30, 2), | 708 COMPARE(ins_(s6, s7, 30, 2), |
689 "7ef6ff84 ins s6, s7, 30, 2"); | 709 "7ef6ff84 ins s6, s7, 30, 2"); |
690 COMPARE(ins_(v0, v1, 0, 32), | 710 COMPARE(ins_(v0, v1, 0, 32), |
691 "7c62f804 ins v0, v1, 0, 32"); | 711 "7c62f804 ins v0, v1, 0, 32"); |
692 COMPARE(ext_(a0, a1, 31, 1), | 712 COMPARE(ext_(a0, a1, 31, 1), |
693 "7ca407c0 ext a0, a1, 31, 1"); | 713 "7ca407c0 ext a0, a1, 31, 1"); |
694 COMPARE(ext_(s6, s7, 30, 2), | 714 COMPARE(ext_(s6, s7, 30, 2), |
695 "7ef60f80 ext s6, s7, 30, 2"); | 715 "7ef60f80 ext s6, s7, 30, 2"); |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 | 1265 |
1246 | 1266 |
1247 TEST(ctc1_cfc1_disasm) { | 1267 TEST(ctc1_cfc1_disasm) { |
1248 SET_UP(); | 1268 SET_UP(); |
1249 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1269 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
1250 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"); |
1251 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1271 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
1252 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1272 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
1253 VERIFY_RUN(); | 1273 VERIFY_RUN(); |
1254 } | 1274 } |
OLD | NEW |