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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 COMPARE(seh(v0, v1), "7c031620 seh v0, v1"); | 704 COMPARE(seh(v0, v1), "7c031620 seh v0, v1"); |
705 | 705 |
706 COMPARE(wsbh(a0, a1), "7c0520a0 wsbh a0, a1"); | 706 COMPARE(wsbh(a0, a1), "7c0520a0 wsbh a0, a1"); |
707 COMPARE(wsbh(s6, s7), "7c17b0a0 wsbh s6, s7"); | 707 COMPARE(wsbh(s6, s7), "7c17b0a0 wsbh s6, s7"); |
708 COMPARE(wsbh(v0, v1), "7c0310a0 wsbh v0, v1"); | 708 COMPARE(wsbh(v0, v1), "7c0310a0 wsbh v0, v1"); |
709 | 709 |
710 COMPARE(dsbh(a0, a1), "7c0520a4 dsbh a0, a1"); | 710 COMPARE(dsbh(a0, a1), "7c0520a4 dsbh a0, a1"); |
711 COMPARE(dsbh(s6, s7), "7c17b0a4 dsbh s6, s7"); | 711 COMPARE(dsbh(s6, s7), "7c17b0a4 dsbh s6, s7"); |
712 COMPARE(dsbh(v0, v1), "7c0310a4 dsbh v0, v1"); | 712 COMPARE(dsbh(v0, v1), "7c0310a4 dsbh v0, v1"); |
713 | 713 |
| 714 COMPARE(dshd(a0, a1), "7c052164 dshd a0, a1"); |
| 715 COMPARE(dshd(s6, s7), "7c17b164 dshd s6, s7"); |
| 716 COMPARE(dshd(v0, v1), "7c031164 dshd v0, v1"); |
| 717 |
| 718 COMPARE(ext_(a0, a1, 31, 1), "7ca407c0 ext a0, a1, 31, 1"); |
| 719 COMPARE(ext_(s6, s7, 30, 2), "7ef60f80 ext s6, s7, 30, 2"); |
| 720 COMPARE(ext_(v0, v1, 0, 32), "7c62f800 ext v0, v1, 0, 32"); |
| 721 |
| 722 COMPARE(dext_(a0, a1, 31, 1), "7ca407c3 dext a0, a1, 31, 1"); |
| 723 COMPARE(dext_(s6, s7, 30, 2), "7ef60f83 dext s6, s7, 30, 2"); |
| 724 COMPARE(dext_(v0, v1, 0, 32), "7c62f803 dext v0, v1, 0, 32"); |
| 725 |
| 726 COMPARE(dextm_(a0, a1, 31, 33), "7ca407c1 dextm a0, a1, 31, 33"); |
| 727 COMPARE(dextm_(s6, s7, 0, 33), "7ef60001 dextm s6, s7, 0, 33"); |
| 728 COMPARE(dextm_(v0, v1, 0, 64), "7c62f801 dextm v0, v1, 0, 64"); |
| 729 |
| 730 COMPARE(dextu_(a0, a1, 32, 1), "7ca40002 dextu a0, a1, 32, 1"); |
| 731 COMPARE(dextu_(s6, s7, 63, 1), "7ef607c2 dextu s6, s7, 63, 1"); |
| 732 COMPARE(dextu_(v0, v1, 32, 32), "7c62f802 dextu v0, v1, 32, 32"); |
| 733 |
| 734 COMPARE(ins_(a0, a1, 31, 1), "7ca4ffc4 ins a0, a1, 31, 1"); |
| 735 COMPARE(ins_(s6, s7, 30, 2), "7ef6ff84 ins s6, s7, 30, 2"); |
| 736 COMPARE(ins_(v0, v1, 0, 32), "7c62f804 ins v0, v1, 0, 32"); |
| 737 |
714 COMPARE(dins_(a0, a1, 31, 1), "7ca4ffc7 dins a0, a1, 31, 1"); | 738 COMPARE(dins_(a0, a1, 31, 1), "7ca4ffc7 dins a0, a1, 31, 1"); |
715 COMPARE(dins_(s6, s7, 30, 2), "7ef6ff87 dins s6, s7, 30, 2"); | 739 COMPARE(dins_(s6, s7, 30, 2), "7ef6ff87 dins s6, s7, 30, 2"); |
716 COMPARE(dins_(v0, v1, 0, 32), "7c62f807 dins v0, v1, 0, 32"); | 740 COMPARE(dins_(v0, v1, 0, 32), "7c62f807 dins v0, v1, 0, 32"); |
717 | 741 |
718 COMPARE(dshd(a0, a1), "7c052164 dshd a0, a1"); | 742 COMPARE(dinsm_(a0, a1, 31, 2), "7ca407c5 dinsm a0, a1, 31, 2"); |
719 COMPARE(dshd(s6, s7), "7c17b164 dshd s6, s7"); | 743 COMPARE(dinsm_(s6, s7, 0, 33), "7ef60005 dinsm s6, s7, 0, 33"); |
720 COMPARE(dshd(v0, v1), "7c031164 dshd v0, v1"); | 744 COMPARE(dinsm_(v0, v1, 0, 64), "7c62f805 dinsm v0, v1, 0, 64"); |
721 | 745 |
722 COMPARE(ins_(a0, a1, 31, 1), | 746 COMPARE(dinsu_(a0, a1, 32, 1), "7ca40006 dinsu a0, a1, 32, 1"); |
723 "7ca4ffc4 ins a0, a1, 31, 1"); | 747 COMPARE(dinsu_(s6, s7, 63, 1), "7ef6ffc6 dinsu s6, s7, 63, 1"); |
724 COMPARE(ins_(s6, s7, 30, 2), | 748 COMPARE(dinsu_(v0, v1, 32, 32), "7c62f806 dinsu v0, v1, 32, 32"); |
725 "7ef6ff84 ins s6, s7, 30, 2"); | |
726 COMPARE(ins_(v0, v1, 0, 32), | |
727 "7c62f804 ins v0, v1, 0, 32"); | |
728 COMPARE(ext_(a0, a1, 31, 1), | |
729 "7ca407c0 ext a0, a1, 31, 1"); | |
730 COMPARE(ext_(s6, s7, 30, 2), | |
731 "7ef60f80 ext s6, s7, 30, 2"); | |
732 COMPARE(ext_(v0, v1, 0, 32), | |
733 "7c62f800 ext v0, v1, 0, 32"); | |
734 | 749 |
735 COMPARE(add_s(f4, f6, f8), "46083100 add.s f4, f6, f8"); | 750 COMPARE(add_s(f4, f6, f8), "46083100 add.s f4, f6, f8"); |
736 COMPARE(add_d(f12, f14, f16), "46307300 add.d f12, f14, f16"); | 751 COMPARE(add_d(f12, f14, f16), "46307300 add.d f12, f14, f16"); |
737 | 752 |
738 if (kArchVariant == kMips64r6) { | 753 if (kArchVariant == kMips64r6) { |
739 COMPARE(bitswap(a0, a1), "7c052020 bitswap a0, a1"); | 754 COMPARE(bitswap(a0, a1), "7c052020 bitswap a0, a1"); |
740 COMPARE(bitswap(t8, s0), "7c10c020 bitswap t8, s0"); | 755 COMPARE(bitswap(t8, s0), "7c10c020 bitswap t8, s0"); |
741 COMPARE(dbitswap(a0, a1), "7c052024 dbitswap a0, a1"); | 756 COMPARE(dbitswap(a0, a1), "7c052024 dbitswap a0, a1"); |
742 COMPARE(dbitswap(t8, s0), "7c10c024 dbitswap t8, s0"); | 757 COMPARE(dbitswap(t8, s0), "7c10c024 dbitswap t8, s0"); |
743 } | 758 } |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 COMPARE(srli_h(w31, w31, 2), "7962ffc9 srli.h w31, w31, 2"); | 1997 COMPARE(srli_h(w31, w31, 2), "7962ffc9 srli.h w31, w31, 2"); |
1983 COMPARE(srli_w(w5, w9, 4), "79444949 srli.w w5, w9, 4"); | 1998 COMPARE(srli_w(w5, w9, 4), "79444949 srli.w w5, w9, 4"); |
1984 COMPARE(srli_d(w27, w26, 5), "7905d6c9 srli.d w27, w26, 5"); | 1999 COMPARE(srli_d(w27, w26, 5), "7905d6c9 srli.d w27, w26, 5"); |
1985 COMPARE(srlri_b(w18, w3, 0), "79f01c8a srlri.b w18, w3, 0"); | 2000 COMPARE(srlri_b(w18, w3, 0), "79f01c8a srlri.b w18, w3, 0"); |
1986 COMPARE(srlri_h(w1, w2, 3), "79e3104a srlri.h w1, w2, 3"); | 2001 COMPARE(srlri_h(w1, w2, 3), "79e3104a srlri.h w1, w2, 3"); |
1987 COMPARE(srlri_w(w11, w22, 2), "79c2b2ca srlri.w w11, w22, 2"); | 2002 COMPARE(srlri_w(w11, w22, 2), "79c2b2ca srlri.w w11, w22, 2"); |
1988 COMPARE(srlri_d(w24, w10, 6), "7986560a srlri.d w24, w10, 6"); | 2003 COMPARE(srlri_d(w24, w10, 6), "7986560a srlri.d w24, w10, 6"); |
1989 } | 2004 } |
1990 VERIFY_RUN(); | 2005 VERIFY_RUN(); |
1991 } | 2006 } |
OLD | NEW |