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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 { \ | 120 { \ |
121 int pc_offset = assm.pc_offset(); \ | 121 int pc_offset = assm.pc_offset(); \ |
122 byte *progcounter = &buffer[pc_offset]; \ | 122 byte *progcounter = &buffer[pc_offset]; \ |
123 char str_with_address[100]; \ | 123 char str_with_address[100]; \ |
124 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ | 124 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ |
125 compare_string, static_cast<void *>(progcounter + (offset * 4))); \ | 125 compare_string, static_cast<void *>(progcounter + (offset * 4))); \ |
126 assm.asm_; \ | 126 assm.asm_; \ |
127 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ | 127 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ |
128 } | 128 } |
129 | 129 |
| 130 #define COMPARE_MSA_BRANCH(asm_, compare_string, offset) \ |
| 131 { \ |
| 132 int pc_offset = assm.pc_offset(); \ |
| 133 byte* progcounter = &buffer[pc_offset]; \ |
| 134 char str_with_address[100]; \ |
| 135 snprintf(str_with_address, sizeof(str_with_address), "%s -> %p", \ |
| 136 compare_string, \ |
| 137 static_cast<void*>(progcounter + 4 + (offset * 4))); \ |
| 138 assm.asm_; \ |
| 139 if (!DisassembleAndCompare(progcounter, str_with_address)) failure = true; \ |
| 140 } |
| 141 |
130 #define COMPARE_PC_JUMP(asm_, compare_string, target) \ | 142 #define COMPARE_PC_JUMP(asm_, compare_string, target) \ |
131 { \ | 143 { \ |
132 int pc_offset = assm.pc_offset(); \ | 144 int pc_offset = assm.pc_offset(); \ |
133 byte *progcounter = &buffer[pc_offset]; \ | 145 byte *progcounter = &buffer[pc_offset]; \ |
134 char str_with_address[100]; \ | 146 char str_with_address[100]; \ |
135 int instr_index = (target >> 2) & kImm26Mask; \ | 147 int instr_index = (target >> 2) & kImm26Mask; \ |
136 snprintf( \ | 148 snprintf( \ |
137 str_with_address, sizeof(str_with_address), "%s %p -> %p", \ | 149 str_with_address, sizeof(str_with_address), "%s %p -> %p", \ |
138 compare_string, reinterpret_cast<void *>(target), \ | 150 compare_string, reinterpret_cast<void *>(target), \ |
139 reinterpret_cast<void *>(((uint32_t)(progcounter + 4) & ~0xfffffff) | \ | 151 reinterpret_cast<void *>(((uint32_t)(progcounter + 4) & ~0xfffffff) | \ |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10"); | 1112 COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10"); |
1101 } | 1113 } |
1102 if (IsMipsArchVariant(kMips32r6)) { | 1114 if (IsMipsArchVariant(kMips32r6)) { |
1103 COMPARE(maddf_s(f4, f8, f10), "460a4118 maddf.s f4, f8, f10"); | 1115 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"); | 1116 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"); | 1117 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"); | 1118 COMPARE(msubf_d(f4, f8, f10), "462a4119 msubf.d f4, f8, f10"); |
1107 } | 1119 } |
1108 VERIFY_RUN(); | 1120 VERIFY_RUN(); |
1109 } | 1121 } |
| 1122 |
| 1123 TEST(MSA_BRANCH) { |
| 1124 SET_UP(); |
| 1125 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1126 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1127 |
| 1128 COMPARE_MSA_BRANCH(bnz_b(w0, 1), "47800001 bnz.b w0, 1", 1); |
| 1129 COMPARE_MSA_BRANCH(bnz_h(w1, -1), "47a1ffff bnz.h w1, -1", -1); |
| 1130 COMPARE_MSA_BRANCH(bnz_w(w2, 32767), "47c27fff bnz.w w2, 32767", |
| 1131 32767); |
| 1132 COMPARE_MSA_BRANCH(bnz_d(w3, -32768), "47e38000 bnz.d w3, -32768", |
| 1133 -32768); |
| 1134 COMPARE_MSA_BRANCH(bnz_v(w0, 0), "45e00000 bnz.v w0, 0", 0); |
| 1135 COMPARE_MSA_BRANCH(bz_b(w0, 1), "47000001 bz.b w0, 1", 1); |
| 1136 COMPARE_MSA_BRANCH(bz_h(w1, -1), "4721ffff bz.h w1, -1", -1); |
| 1137 COMPARE_MSA_BRANCH(bz_w(w2, 32767), "47427fff bz.w w2, 32767", |
| 1138 32767); |
| 1139 COMPARE_MSA_BRANCH(bz_d(w3, -32768), "47638000 bz.d w3, -32768", |
| 1140 -32768); |
| 1141 COMPARE_MSA_BRANCH(bz_v(w0, 0), "45600000 bz.v w0, 0", 0); |
| 1142 } |
| 1143 VERIFY_RUN(); |
| 1144 } |
| 1145 |
| 1146 TEST(MSA_MI10) { |
| 1147 SET_UP(); |
| 1148 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1149 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1150 |
| 1151 COMPARE(ld_b(w0, MemOperand(at, -512)), |
| 1152 "7a000820 ld.b w0, -512(at)"); |
| 1153 COMPARE(ld_b(w1, MemOperand(v0, 0)), "78001060 ld.b w1, 0(v0)"); |
| 1154 COMPARE(ld_b(w2, MemOperand(v1, 511)), "79ff18a0 ld.b w2, 511(v1)"); |
| 1155 COMPARE(ld_h(w4, MemOperand(a1, -512)), |
| 1156 "7a002921 ld.h w4, -512(a1)"); |
| 1157 COMPARE(ld_h(w5, MemOperand(a2, 64)), "78403161 ld.h w5, 64(a2)"); |
| 1158 COMPARE(ld_h(w6, MemOperand(a3, 511)), "79ff39a1 ld.h w6, 511(a3)"); |
| 1159 COMPARE(ld_w(w10, MemOperand(t3, -512)), |
| 1160 "7a005aa2 ld.w w10, -512(t3)"); |
| 1161 COMPARE(ld_w(w11, MemOperand(t4, 511)), |
| 1162 "79ff62e2 ld.w w11, 511(t4)"); |
| 1163 COMPARE(ld_w(w12, MemOperand(t5, -128)), |
| 1164 "7b806b22 ld.w w12, -128(t5)"); |
| 1165 COMPARE(ld_d(w17, MemOperand(s2, -512)), |
| 1166 "7a009463 ld.d w17, -512(s2)"); |
| 1167 COMPARE(ld_d(w18, MemOperand(s3, 128)), |
| 1168 "78809ca3 ld.d w18, 128(s3)"); |
| 1169 COMPARE(ld_d(w19, MemOperand(s4, 511)), |
| 1170 "79ffa4e3 ld.d w19, 511(s4)"); |
| 1171 COMPARE(st_b(w0, MemOperand(at, -512)), |
| 1172 "7a000824 st.b w0, -512(at)"); |
| 1173 COMPARE(st_b(w1, MemOperand(v0, 0)), "78001064 st.b w1, 0(v0)"); |
| 1174 COMPARE(st_b(w2, MemOperand(v1, 511)), "79ff18a4 st.b w2, 511(v1)"); |
| 1175 COMPARE(st_h(w4, MemOperand(a1, -512)), |
| 1176 "7a002925 st.h w4, -512(a1)"); |
| 1177 COMPARE(st_h(w5, MemOperand(a2, 64)), "78403165 st.h w5, 64(a2)"); |
| 1178 COMPARE(st_h(w6, MemOperand(a3, 511)), "79ff39a5 st.h w6, 511(a3)"); |
| 1179 COMPARE(st_w(w10, MemOperand(t3, -512)), |
| 1180 "7a005aa6 st.w w10, -512(t3)"); |
| 1181 COMPARE(st_w(w11, MemOperand(t4, 511)), |
| 1182 "79ff62e6 st.w w11, 511(t4)"); |
| 1183 COMPARE(st_w(w12, MemOperand(t5, -128)), |
| 1184 "7b806b26 st.w w12, -128(t5)"); |
| 1185 COMPARE(st_d(w17, MemOperand(s2, -512)), |
| 1186 "7a009467 st.d w17, -512(s2)"); |
| 1187 COMPARE(st_d(w18, MemOperand(s3, 128)), |
| 1188 "78809ca7 st.d w18, 128(s3)"); |
| 1189 COMPARE(st_d(w19, MemOperand(s4, 511)), |
| 1190 "79ffa4e7 st.d w19, 511(s4)"); |
| 1191 } |
| 1192 VERIFY_RUN(); |
| 1193 } |
| 1194 |
| 1195 TEST(MSA_I5) { |
| 1196 SET_UP(); |
| 1197 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1198 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1199 |
| 1200 COMPARE(addvi_b(w3, w31, 30), "781ef8c6 addvi.b w3, w31, 30"); |
| 1201 COMPARE(addvi_h(w24, w13, 26), "783a6e06 addvi.h w24, w13, 26"); |
| 1202 COMPARE(addvi_w(w26, w20, 26), "785aa686 addvi.w w26, w20, 26"); |
| 1203 COMPARE(addvi_d(w16, w1, 21), "78750c06 addvi.d w16, w1, 21"); |
| 1204 COMPARE(ceqi_b(w24, w21, -8), "7818ae07 ceqi.b w24, w21, -8"); |
| 1205 COMPARE(ceqi_h(w31, w15, 2), "78227fc7 ceqi.h w31, w15, 2"); |
| 1206 COMPARE(ceqi_w(w12, w1, -1), "785f0b07 ceqi.w w12, w1, -1"); |
| 1207 COMPARE(ceqi_d(w24, w22, 7), "7867b607 ceqi.d w24, w22, 7"); |
| 1208 COMPARE(clei_s_b(w12, w16, 1), "7a018307 clei_s.b w12, w16, 1"); |
| 1209 COMPARE(clei_s_h(w2, w10, -9), "7a375087 clei_s.h w2, w10, -9"); |
| 1210 COMPARE(clei_s_w(w4, w11, -10), "7a565907 clei_s.w w4, w11, -10"); |
| 1211 COMPARE(clei_s_d(w0, w29, -10), "7a76e807 clei_s.d w0, w29, -10"); |
| 1212 COMPARE(clei_u_b(w21, w17, 3), "7a838d47 clei_u.b w21, w17, 3"); |
| 1213 COMPARE(clei_u_h(w29, w7, 17), "7ab13f47 clei_u.h w29, w7, 17"); |
| 1214 COMPARE(clei_u_w(w1, w1, 2), "7ac20847 clei_u.w w1, w1, 2"); |
| 1215 COMPARE(clei_u_d(w27, w27, 29), "7afddec7 clei_u.d w27, w27, 29"); |
| 1216 COMPARE(clti_s_b(w19, w13, -7), "79196cc7 clti_s.b w19, w13, -7"); |
| 1217 COMPARE(clti_s_h(w15, w10, -12), "793453c7 clti_s.h w15, w10, -12"); |
| 1218 COMPARE(clti_s_w(w12, w12, 11), "794b6307 clti_s.w w12, w12, 11"); |
| 1219 COMPARE(clti_s_d(w29, w20, -15), "7971a747 clti_s.d w29, w20, -15"); |
| 1220 COMPARE(clti_u_b(w14, w9, 29), "799d4b87 clti_u.b w14, w9, 29"); |
| 1221 COMPARE(clti_u_h(w24, w25, 25), "79b9ce07 clti_u.h w24, w25, 25"); |
| 1222 COMPARE(clti_u_w(w1, w1, 22), "79d60847 clti_u.w w1, w1, 22"); |
| 1223 COMPARE(clti_u_d(w21, w25, 1), "79e1cd47 clti_u.d w21, w25, 1"); |
| 1224 COMPARE(maxi_s_b(w22, w21, 1), "7901ad86 maxi_s.b w22, w21, 1"); |
| 1225 COMPARE(maxi_s_h(w29, w5, -8), "79382f46 maxi_s.h w29, w5, -8"); |
| 1226 COMPARE(maxi_s_w(w1, w10, -12), "79545046 maxi_s.w w1, w10, -12"); |
| 1227 COMPARE(maxi_s_d(w13, w29, -16), "7970eb46 maxi_s.d w13, w29, -16"); |
| 1228 COMPARE(maxi_u_b(w20, w0, 12), "798c0506 maxi_u.b w20, w0, 12"); |
| 1229 COMPARE(maxi_u_h(w1, w14, 3), "79a37046 maxi_u.h w1, w14, 3"); |
| 1230 COMPARE(maxi_u_w(w27, w22, 11), "79cbb6c6 maxi_u.w w27, w22, 11"); |
| 1231 COMPARE(maxi_u_d(w26, w6, 4), "79e43686 maxi_u.d w26, w6, 4"); |
| 1232 COMPARE(mini_s_b(w4, w1, 1), "7a010906 mini_s.b w4, w1, 1"); |
| 1233 COMPARE(mini_s_h(w27, w27, -9), "7a37dec6 mini_s.h w27, w27, -9"); |
| 1234 COMPARE(mini_s_w(w28, w11, 9), "7a495f06 mini_s.w w28, w11, 9"); |
| 1235 COMPARE(mini_s_d(w11, w10, 10), "7a6a52c6 mini_s.d w11, w10, 10"); |
| 1236 COMPARE(mini_u_b(w18, w23, 27), "7a9bbc86 mini_u.b w18, w23, 27"); |
| 1237 COMPARE(mini_u_h(w7, w26, 18), "7ab2d1c6 mini_u.h w7, w26, 18"); |
| 1238 COMPARE(mini_u_w(w11, w12, 26), "7ada62c6 mini_u.w w11, w12, 26"); |
| 1239 COMPARE(mini_u_d(w11, w15, 2), "7ae27ac6 mini_u.d w11, w15, 2"); |
| 1240 COMPARE(subvi_b(w24, w20, 19), "7893a606 subvi.b w24, w20, 19"); |
| 1241 COMPARE(subvi_h(w11, w19, 4), "78a49ac6 subvi.h w11, w19, 4"); |
| 1242 COMPARE(subvi_w(w12, w10, 11), "78cb5306 subvi.w w12, w10, 11"); |
| 1243 COMPARE(subvi_d(w19, w16, 7), "78e784c6 subvi.d w19, w16, 7"); |
| 1244 } |
| 1245 VERIFY_RUN(); |
| 1246 } |
| 1247 |
| 1248 TEST(MSA_I10) { |
| 1249 SET_UP(); |
| 1250 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1251 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1252 |
| 1253 COMPARE(ldi_b(w8, 198), "7b063207 ldi.b w8, 198"); |
| 1254 COMPARE(ldi_h(w20, 313), "7b29cd07 ldi.h w20, 313"); |
| 1255 COMPARE(ldi_w(w24, 492), "7b4f6607 ldi.w w24, 492"); |
| 1256 COMPARE(ldi_d(w27, -180), "7b7a66c7 ldi.d w27, -180"); |
| 1257 } |
| 1258 VERIFY_RUN(); |
| 1259 } |
| 1260 |
| 1261 TEST(MSA_I8) { |
| 1262 SET_UP(); |
| 1263 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1264 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1265 |
| 1266 COMPARE(andi_b(w2, w29, 48), "7830e880 andi.b w2, w29, 48"); |
| 1267 COMPARE(bmnzi_b(w6, w22, 126), "787eb181 bmnzi.b w6, w22, 126"); |
| 1268 COMPARE(bmzi_b(w27, w1, 88), "79580ec1 bmzi.b w27, w1, 88"); |
| 1269 COMPARE(bseli_b(w29, w3, 189), "7abd1f41 bseli.b w29, w3, 189"); |
| 1270 COMPARE(nori_b(w1, w17, 56), "7a388840 nori.b w1, w17, 56"); |
| 1271 COMPARE(ori_b(w26, w20, 135), "7987a680 ori.b w26, w20, 135"); |
| 1272 COMPARE(shf_b(w19, w30, 105), "7869f4c2 shf.b w19, w30, 105"); |
| 1273 COMPARE(shf_h(w17, w8, 76), "794c4442 shf.h w17, w8, 76"); |
| 1274 COMPARE(shf_w(w14, w3, 93), "7a5d1b82 shf.w w14, w3, 93"); |
| 1275 COMPARE(xori_b(w16, w10, 20), "7b145400 xori.b w16, w10, 20"); |
| 1276 } |
| 1277 VERIFY_RUN(); |
| 1278 } |
| 1279 |
| 1280 TEST(MSA_VEC) { |
| 1281 SET_UP(); |
| 1282 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1283 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1284 |
| 1285 COMPARE(and_v(w25, w20, w27), "781ba65e and.v w25, w20, w27"); |
| 1286 COMPARE(bmnz_v(w17, w6, w7), "7887345e bmnz.v w17, w6, w7"); |
| 1287 COMPARE(bmz_v(w3, w17, w9), "78a988de bmz.v w3, w17, w9"); |
| 1288 COMPARE(bsel_v(w8, w0, w14), "78ce021e bsel.v w8, w0, w14"); |
| 1289 COMPARE(nor_v(w7, w31, w0), "7840f9de nor.v w7, w31, w0"); |
| 1290 COMPARE(or_v(w24, w26, w30), "783ed61e or.v w24, w26, w30"); |
| 1291 COMPARE(xor_v(w7, w27, w15), "786fd9de xor.v w7, w27, w15"); |
| 1292 } |
| 1293 VERIFY_RUN(); |
| 1294 } |
| 1295 |
| 1296 TEST(MSA_2R) { |
| 1297 SET_UP(); |
| 1298 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1299 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1300 |
| 1301 COMPARE(fill_b(w30, t1), "7b004f9e fill.b w30, t1"); |
| 1302 COMPARE(fill_h(w31, s7), "7b01bfde fill.h w31, s7"); |
| 1303 COMPARE(fill_w(w16, t8), "7b02c41e fill.w w16, t8"); |
| 1304 COMPARE(nloc_b(w21, w0), "7b08055e nloc.b w21, w0"); |
| 1305 COMPARE(nloc_h(w18, w31), "7b09fc9e nloc.h w18, w31"); |
| 1306 COMPARE(nloc_w(w2, w23), "7b0ab89e nloc.w w2, w23"); |
| 1307 COMPARE(nloc_d(w4, w10), "7b0b511e nloc.d w4, w10"); |
| 1308 COMPARE(nlzc_b(w31, w2), "7b0c17de nlzc.b w31, w2"); |
| 1309 COMPARE(nlzc_h(w27, w22), "7b0db6de nlzc.h w27, w22"); |
| 1310 COMPARE(nlzc_w(w10, w29), "7b0eea9e nlzc.w w10, w29"); |
| 1311 COMPARE(nlzc_d(w25, w9), "7b0f4e5e nlzc.d w25, w9"); |
| 1312 COMPARE(pcnt_b(w20, w18), "7b04951e pcnt.b w20, w18"); |
| 1313 COMPARE(pcnt_h(w0, w8), "7b05401e pcnt.h w0, w8"); |
| 1314 COMPARE(pcnt_w(w23, w9), "7b064dde pcnt.w w23, w9"); |
| 1315 COMPARE(pcnt_d(w21, w24), "7b07c55e pcnt.d w21, w24"); |
| 1316 } |
| 1317 VERIFY_RUN(); |
| 1318 } |
| 1319 |
| 1320 TEST(MSA_2RF) { |
| 1321 SET_UP(); |
| 1322 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1323 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1324 |
| 1325 COMPARE(fclass_w(w26, w12), "7b20669e fclass.w w26, w12"); |
| 1326 COMPARE(fclass_d(w24, w17), "7b218e1e fclass.d w24, w17"); |
| 1327 COMPARE(fexupl_w(w8, w0), "7b30021e fexupl.w w8, w0"); |
| 1328 COMPARE(fexupl_d(w17, w29), "7b31ec5e fexupl.d w17, w29"); |
| 1329 COMPARE(fexupr_w(w13, w4), "7b32235e fexupr.w w13, w4"); |
| 1330 COMPARE(fexupr_d(w5, w2), "7b33115e fexupr.d w5, w2"); |
| 1331 COMPARE(ffint_s_w(w20, w29), "7b3ced1e ffint_s.w w20, w29"); |
| 1332 COMPARE(ffint_s_d(w12, w15), "7b3d7b1e ffint_s.d w12, w15"); |
| 1333 COMPARE(ffint_u_w(w7, w27), "7b3ed9de ffint_u.w w7, w27"); |
| 1334 COMPARE(ffint_u_d(w19, w16), "7b3f84de ffint_u.d w19, w16"); |
| 1335 COMPARE(ffql_w(w31, w13), "7b346fde ffql.w w31, w13"); |
| 1336 COMPARE(ffql_d(w12, w13), "7b356b1e ffql.d w12, w13"); |
| 1337 COMPARE(ffqr_w(w27, w30), "7b36f6de ffqr.w w27, w30"); |
| 1338 COMPARE(ffqr_d(w30, w15), "7b377f9e ffqr.d w30, w15"); |
| 1339 COMPARE(flog2_w(w25, w31), "7b2efe5e flog2.w w25, w31"); |
| 1340 COMPARE(flog2_d(w18, w10), "7b2f549e flog2.d w18, w10"); |
| 1341 COMPARE(frint_w(w7, w15), "7b2c79de frint.w w7, w15"); |
| 1342 COMPARE(frint_d(w21, w22), "7b2db55e frint.d w21, w22"); |
| 1343 COMPARE(frcp_w(w19, w0), "7b2a04de frcp.w w19, w0"); |
| 1344 COMPARE(frcp_d(w4, w14), "7b2b711e frcp.d w4, w14"); |
| 1345 COMPARE(frsqrt_w(w12, w17), "7b288b1e frsqrt.w w12, w17"); |
| 1346 COMPARE(frsqrt_d(w23, w11), "7b295dde frsqrt.d w23, w11"); |
| 1347 COMPARE(fsqrt_w(w0, w11), "7b26581e fsqrt.w w0, w11"); |
| 1348 COMPARE(fsqrt_d(w15, w12), "7b2763de fsqrt.d w15, w12"); |
| 1349 COMPARE(ftint_s_w(w30, w5), "7b382f9e ftint_s.w w30, w5"); |
| 1350 COMPARE(ftint_s_d(w5, w23), "7b39b95e ftint_s.d w5, w23"); |
| 1351 COMPARE(ftint_u_w(w20, w14), "7b3a751e ftint_u.w w20, w14"); |
| 1352 COMPARE(ftint_u_d(w23, w21), "7b3badde ftint_u.d w23, w21"); |
| 1353 COMPARE(ftrunc_s_w(w29, w17), "7b228f5e ftrunc_s.w w29, w17"); |
| 1354 COMPARE(ftrunc_s_d(w12, w27), "7b23db1e ftrunc_s.d w12, w27"); |
| 1355 COMPARE(ftrunc_u_w(w17, w15), "7b247c5e ftrunc_u.w w17, w15"); |
| 1356 COMPARE(ftrunc_u_d(w5, w27), "7b25d95e ftrunc_u.d w5, w27"); |
| 1357 } |
| 1358 VERIFY_RUN(); |
| 1359 } |
| 1360 |
| 1361 TEST(MSA_3R) { |
| 1362 SET_UP(); |
| 1363 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1364 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1365 |
| 1366 COMPARE(add_a_b(w26, w9, w4), "78044e90 add_a.b w26, w9, w4"); |
| 1367 COMPARE(add_a_h(w23, w27, w31), "783fddd0 add_a.h w23, w27, w31"); |
| 1368 COMPARE(add_a_w(w11, w6, w22), "785632d0 add_a.w w11, w6, w22"); |
| 1369 COMPARE(add_a_d(w6, w10, w0), "78605190 add_a.d w6, w10, w0"); |
| 1370 COMPARE(adds_a_b(w19, w24, w19), "7893c4d0 adds_a.b w19, w24, w19"); |
| 1371 COMPARE(adds_a_h(w25, w6, w4), "78a43650 adds_a.h w25, w6, w4"); |
| 1372 COMPARE(adds_a_w(w25, w17, w27), "78db8e50 adds_a.w w25, w17, w27"); |
| 1373 COMPARE(adds_a_d(w15, w18, w26), "78fa93d0 adds_a.d w15, w18, w26"); |
| 1374 COMPARE(adds_s_b(w29, w11, w19), "79135f50 adds_s.b w29, w11, w19"); |
| 1375 COMPARE(adds_s_h(w5, w23, w26), "793ab950 adds_s.h w5, w23, w26"); |
| 1376 COMPARE(adds_s_w(w16, w14, w13), "794d7410 adds_s.w w16, w14, w13"); |
| 1377 COMPARE(adds_s_d(w2, w14, w28), "797c7090 adds_s.d w2, w14, w28"); |
| 1378 COMPARE(adds_u_b(w3, w17, w14), "798e88d0 adds_u.b w3, w17, w14"); |
| 1379 COMPARE(adds_u_h(w10, w30, w4), "79a4f290 adds_u.h w10, w30, w4"); |
| 1380 COMPARE(adds_u_w(w15, w18, w20), "79d493d0 adds_u.w w15, w18, w20"); |
| 1381 COMPARE(adds_u_d(w30, w10, w9), "79e95790 adds_u.d w30, w10, w9"); |
| 1382 COMPARE(addv_b(w24, w20, w21), "7815a60e addv.b w24, w20, w21"); |
| 1383 COMPARE(addv_h(w4, w13, w27), "783b690e addv.h w4, w13, w27"); |
| 1384 COMPARE(addv_w(w19, w11, w14), "784e5cce addv.w w19, w11, w14"); |
| 1385 COMPARE(addv_d(w2, w21, w31), "787fa88e addv.d w2, w21, w31"); |
| 1386 COMPARE(asub_s_b(w23, w16, w3), "7a0385d1 asub_s.b w23, w16, w3"); |
| 1387 COMPARE(asub_s_h(w22, w17, w25), "7a398d91 asub_s.h w22, w17, w25"); |
| 1388 COMPARE(asub_s_w(w24, w1, w9), "7a490e11 asub_s.w w24, w1, w9"); |
| 1389 COMPARE(asub_s_d(w13, w12, w12), "7a6c6351 asub_s.d w13, w12, w12"); |
| 1390 COMPARE(asub_u_b(w10, w29, w11), "7a8bea91 asub_u.b w10, w29, w11"); |
| 1391 COMPARE(asub_u_h(w18, w9, w15), "7aaf4c91 asub_u.h w18, w9, w15"); |
| 1392 COMPARE(asub_u_w(w10, w19, w31), "7adf9a91 asub_u.w w10, w19, w31"); |
| 1393 COMPARE(asub_u_d(w17, w10, w0), "7ae05451 asub_u.d w17, w10, w0"); |
| 1394 COMPARE(ave_s_b(w2, w5, w1), "7a012890 ave_s.b w2, w5, w1"); |
| 1395 COMPARE(ave_s_h(w16, w19, w9), "7a299c10 ave_s.h w16, w19, w9"); |
| 1396 COMPARE(ave_s_w(w17, w31, w5), "7a45fc50 ave_s.w w17, w31, w5"); |
| 1397 COMPARE(ave_s_d(w27, w25, w10), "7a6aced0 ave_s.d w27, w25, w10"); |
| 1398 COMPARE(ave_u_b(w16, w19, w9), "7a899c10 ave_u.b w16, w19, w9"); |
| 1399 COMPARE(ave_u_h(w28, w28, w11), "7aabe710 ave_u.h w28, w28, w11"); |
| 1400 COMPARE(ave_u_w(w11, w12, w11), "7acb62d0 ave_u.w w11, w12, w11"); |
| 1401 COMPARE(ave_u_d(w30, w19, w28), "7afc9f90 ave_u.d w30, w19, w28"); |
| 1402 COMPARE(aver_s_b(w26, w16, w2), "7b028690 aver_s.b w26, w16, w2"); |
| 1403 COMPARE(aver_s_h(w31, w27, w27), "7b3bdfd0 aver_s.h w31, w27, w27"); |
| 1404 COMPARE(aver_s_w(w28, w18, w25), "7b599710 aver_s.w w28, w18, w25"); |
| 1405 COMPARE(aver_s_d(w29, w21, w27), "7b7baf50 aver_s.d w29, w21, w27"); |
| 1406 COMPARE(aver_u_b(w29, w26, w3), "7b83d750 aver_u.b w29, w26, w3"); |
| 1407 COMPARE(aver_u_h(w18, w18, w9), "7ba99490 aver_u.h w18, w18, w9"); |
| 1408 COMPARE(aver_u_w(w17, w25, w29), "7bddcc50 aver_u.w w17, w25, w29"); |
| 1409 COMPARE(aver_u_d(w22, w22, w19), "7bf3b590 aver_u.d w22, w22, w19"); |
| 1410 COMPARE(bclr_b(w2, w15, w29), "799d788d bclr.b w2, w15, w29"); |
| 1411 COMPARE(bclr_h(w16, w21, w28), "79bcac0d bclr.h w16, w21, w28"); |
| 1412 COMPARE(bclr_w(w19, w2, w9), "79c914cd bclr.w w19, w2, w9"); |
| 1413 COMPARE(bclr_d(w27, w31, w4), "79e4fecd bclr.d w27, w31, w4"); |
| 1414 COMPARE(binsl_b(w5, w16, w24), "7b18814d binsl.b w5, w16, w24"); |
| 1415 COMPARE(binsl_h(w30, w5, w10), "7b2a2f8d binsl.h w30, w5, w10"); |
| 1416 COMPARE(binsl_w(w14, w15, w13), "7b4d7b8d binsl.w w14, w15, w13"); |
| 1417 COMPARE(binsl_d(w23, w20, w12), "7b6ca5cd binsl.d w23, w20, w12"); |
| 1418 COMPARE(binsr_b(w22, w11, w2), "7b825d8d binsr.b w22, w11, w2"); |
| 1419 COMPARE(binsr_h(w0, w26, w6), "7ba6d00d binsr.h w0, w26, w6"); |
| 1420 COMPARE(binsr_w(w26, w3, w28), "7bdc1e8d binsr.w w26, w3, w28"); |
| 1421 COMPARE(binsr_d(w0, w0, w21), "7bf5000d binsr.d w0, w0, w21"); |
| 1422 COMPARE(bneg_b(w0, w11, w24), "7a98580d bneg.b w0, w11, w24"); |
| 1423 COMPARE(bneg_h(w28, w16, w4), "7aa4870d bneg.h w28, w16, w4"); |
| 1424 COMPARE(bneg_w(w3, w26, w19), "7ad3d0cd bneg.w w3, w26, w19"); |
| 1425 COMPARE(bneg_d(w13, w29, w15), "7aefeb4d bneg.d w13, w29, w15"); |
| 1426 COMPARE(bset_b(w31, w5, w31), "7a1f2fcd bset.b w31, w5, w31"); |
| 1427 COMPARE(bset_h(w14, w12, w6), "7a26638d bset.h w14, w12, w6"); |
| 1428 COMPARE(bset_w(w31, w9, w12), "7a4c4fcd bset.w w31, w9, w12"); |
| 1429 COMPARE(bset_d(w5, w22, w5), "7a65b14d bset.d w5, w22, w5"); |
| 1430 COMPARE(ceq_b(w31, w31, w18), "7812ffcf ceq.b w31, w31, w18"); |
| 1431 COMPARE(ceq_h(w10, w27, w9), "7829da8f ceq.h w10, w27, w9"); |
| 1432 COMPARE(ceq_w(w9, w5, w14), "784e2a4f ceq.w w9, w5, w14"); |
| 1433 COMPARE(ceq_d(w5, w17, w0), "7860894f ceq.d w5, w17, w0"); |
| 1434 COMPARE(cle_s_b(w23, w4, w9), "7a0925cf cle_s.b w23, w4, w9"); |
| 1435 COMPARE(cle_s_h(w22, w27, w19), "7a33dd8f cle_s.h w22, w27, w19"); |
| 1436 COMPARE(cle_s_w(w30, w26, w10), "7a4ad78f cle_s.w w30, w26, w10"); |
| 1437 COMPARE(cle_s_d(w18, w5, w10), "7a6a2c8f cle_s.d w18, w5, w10"); |
| 1438 COMPARE(cle_u_b(w1, w25, w0), "7a80c84f cle_u.b w1, w25, w0"); |
| 1439 COMPARE(cle_u_h(w7, w0, w29), "7abd01cf cle_u.h w7, w0, w29"); |
| 1440 COMPARE(cle_u_w(w25, w18, w1), "7ac1964f cle_u.w w25, w18, w1"); |
| 1441 COMPARE(cle_u_d(w6, w0, w30), "7afe018f cle_u.d w6, w0, w30"); |
| 1442 COMPARE(clt_s_b(w25, w2, w21), "7915164f clt_s.b w25, w2, w21"); |
| 1443 COMPARE(clt_s_h(w2, w19, w9), "7929988f clt_s.h w2, w19, w9"); |
| 1444 COMPARE(clt_s_w(w23, w8, w16), "795045cf clt_s.w w23, w8, w16"); |
| 1445 COMPARE(clt_s_d(w7, w30, w12), "796cf1cf clt_s.d w7, w30, w12"); |
| 1446 COMPARE(clt_u_b(w2, w31, w13), "798df88f clt_u.b w2, w31, w13"); |
| 1447 COMPARE(clt_u_h(w16, w31, w23), "79b7fc0f clt_u.h w16, w31, w23"); |
| 1448 COMPARE(clt_u_w(w3, w24, w9), "79c9c0cf clt_u.w w3, w24, w9"); |
| 1449 COMPARE(clt_u_d(w7, w0, w1), "79e101cf clt_u.d w7, w0, w1"); |
| 1450 COMPARE(div_s_b(w29, w3, w18), "7a121f52 div_s.b w29, w3, w18"); |
| 1451 COMPARE(div_s_h(w17, w16, w13), "7a2d8452 div_s.h w17, w16, w13"); |
| 1452 COMPARE(div_s_w(w4, w25, w30), "7a5ec912 div_s.w w4, w25, w30"); |
| 1453 COMPARE(div_s_d(w31, w9, w20), "7a744fd2 div_s.d w31, w9, w20"); |
| 1454 COMPARE(div_u_b(w6, w29, w10), "7a8ae992 div_u.b w6, w29, w10"); |
| 1455 COMPARE(div_u_h(w24, w21, w14), "7aaeae12 div_u.h w24, w21, w14"); |
| 1456 COMPARE(div_u_w(w29, w14, w25), "7ad97752 div_u.w w29, w14, w25"); |
| 1457 COMPARE(div_u_d(w31, w1, w21), "7af50fd2 div_u.d w31, w1, w21"); |
| 1458 COMPARE(dotp_s_h(w23, w22, w25), "7839b5d3 dotp_s.h w23, w22, w25"); |
| 1459 COMPARE(dotp_s_w(w20, w14, w5), "78457513 dotp_s.w w20, w14, w5"); |
| 1460 COMPARE(dotp_s_d(w17, w2, w22), "78761453 dotp_s.d w17, w2, w22"); |
| 1461 COMPARE(dotp_u_h(w13, w2, w6), "78a61353 dotp_u.h w13, w2, w6"); |
| 1462 COMPARE(dotp_u_w(w15, w22, w21), "78d5b3d3 dotp_u.w w15, w22, w21"); |
| 1463 COMPARE(dotp_u_d(w4, w16, w26), "78fa8113 dotp_u.d w4, w16, w26"); |
| 1464 COMPARE(dpadd_s_h(w1, w28, w22), "7936e053 dpadd_s.h w1, w28, w22"); |
| 1465 COMPARE(dpadd_s_w(w10, w1, w12), "794c0a93 dpadd_s.w w10, w1, w12"); |
| 1466 COMPARE(dpadd_s_d(w3, w21, w27), "797ba8d3 dpadd_s.d w3, w21, w27"); |
| 1467 COMPARE(dpadd_u_h(w17, w5, w20), "79b42c53 dpadd_u.h w17, w5, w20"); |
| 1468 COMPARE(dpadd_u_w(w24, w8, w16), "79d04613 dpadd_u.w w24, w8, w16"); |
| 1469 COMPARE(dpadd_u_d(w15, w29, w16), |
| 1470 "79f0ebd3 dpadd_u.d w15, w29, w16"); |
| 1471 COMPARE(dpsub_s_h(w4, w11, w12), "7a2c5913 dpsub_s.h w4, w11, w12"); |
| 1472 COMPARE(dpsub_s_w(w4, w7, w6), "7a463913 dpsub_s.w w4, w7, w6"); |
| 1473 COMPARE(dpsub_s_d(w31, w12, w28), |
| 1474 "7a7c67d3 dpsub_s.d w31, w12, w28"); |
| 1475 COMPARE(dpsub_u_h(w4, w25, w17), "7ab1c913 dpsub_u.h w4, w25, w17"); |
| 1476 COMPARE(dpsub_u_w(w19, w25, w16), |
| 1477 "7ad0ccd3 dpsub_u.w w19, w25, w16"); |
| 1478 COMPARE(dpsub_u_d(w7, w10, w26), "7afa51d3 dpsub_u.d w7, w10, w26"); |
| 1479 COMPARE(hadd_s_h(w28, w24, w2), "7a22c715 hadd_s.h w28, w24, w2"); |
| 1480 COMPARE(hadd_s_w(w24, w17, w11), "7a4b8e15 hadd_s.w w24, w17, w11"); |
| 1481 COMPARE(hadd_s_d(w17, w15, w20), "7a747c55 hadd_s.d w17, w15, w20"); |
| 1482 COMPARE(hadd_u_h(w12, w29, w17), "7ab1eb15 hadd_u.h w12, w29, w17"); |
| 1483 COMPARE(hadd_u_w(w9, w5, w6), "7ac62a55 hadd_u.w w9, w5, w6"); |
| 1484 COMPARE(hadd_u_d(w1, w20, w6), "7ae6a055 hadd_u.d w1, w20, w6"); |
| 1485 COMPARE(hsub_s_h(w16, w14, w29), "7b3d7415 hsub_s.h w16, w14, w29"); |
| 1486 COMPARE(hsub_s_w(w9, w13, w11), "7b4b6a55 hsub_s.w w9, w13, w11"); |
| 1487 COMPARE(hsub_s_d(w30, w18, w14), "7b6e9795 hsub_s.d w30, w18, w14"); |
| 1488 COMPARE(hsub_u_h(w7, w12, w14), "7bae61d5 hsub_u.h w7, w12, w14"); |
| 1489 COMPARE(hsub_u_w(w21, w5, w5), "7bc52d55 hsub_u.w w21, w5, w5"); |
| 1490 COMPARE(hsub_u_d(w11, w12, w31), "7bff62d5 hsub_u.d w11, w12, w31"); |
| 1491 COMPARE(ilvev_b(w18, w16, w30), "7b1e8494 ilvev.b w18, w16, w30"); |
| 1492 COMPARE(ilvev_h(w14, w0, w13), "7b2d0394 ilvev.h w14, w0, w13"); |
| 1493 COMPARE(ilvev_w(w12, w25, w22), "7b56cb14 ilvev.w w12, w25, w22"); |
| 1494 COMPARE(ilvev_d(w30, w27, w3), "7b63df94 ilvev.d w30, w27, w3"); |
| 1495 COMPARE(ilvl_b(w29, w3, w21), "7a151f54 ilvl.b w29, w3, w21"); |
| 1496 COMPARE(ilvl_h(w27, w10, w17), "7a3156d4 ilvl.h w27, w10, w17"); |
| 1497 COMPARE(ilvl_w(w6, w1, w0), "7a400994 ilvl.w w6, w1, w0"); |
| 1498 COMPARE(ilvl_d(w3, w16, w24), "7a7880d4 ilvl.d w3, w16, w24"); |
| 1499 COMPARE(ilvod_b(w11, w5, w20), "7b942ad4 ilvod.b w11, w5, w20"); |
| 1500 COMPARE(ilvod_h(w18, w13, w31), "7bbf6c94 ilvod.h w18, w13, w31"); |
| 1501 COMPARE(ilvod_w(w29, w16, w24), "7bd88754 ilvod.w w29, w16, w24"); |
| 1502 COMPARE(ilvod_d(w22, w12, w29), "7bfd6594 ilvod.d w22, w12, w29"); |
| 1503 COMPARE(ilvr_b(w4, w30, w6), "7a86f114 ilvr.b w4, w30, w6"); |
| 1504 COMPARE(ilvr_h(w28, w19, w29), "7abd9f14 ilvr.h w28, w19, w29"); |
| 1505 COMPARE(ilvr_w(w18, w20, w21), "7ad5a494 ilvr.w w18, w20, w21"); |
| 1506 COMPARE(ilvr_d(w23, w30, w12), "7aecf5d4 ilvr.d w23, w30, w12"); |
| 1507 COMPARE(maddv_b(w17, w31, w29), "789dfc52 maddv.b w17, w31, w29"); |
| 1508 COMPARE(maddv_h(w7, w24, w9), "78a9c1d2 maddv.h w7, w24, w9"); |
| 1509 COMPARE(maddv_w(w22, w22, w20), "78d4b592 maddv.w w22, w22, w20"); |
| 1510 COMPARE(maddv_d(w30, w26, w20), "78f4d792 maddv.d w30, w26, w20"); |
| 1511 COMPARE(max_a_b(w23, w11, w23), "7b175dce max_a.b w23, w11, w23"); |
| 1512 COMPARE(max_a_h(w20, w5, w30), "7b3e2d0e max_a.h w20, w5, w30"); |
| 1513 COMPARE(max_a_w(w7, w18, w30), "7b5e91ce max_a.w w7, w18, w30"); |
| 1514 COMPARE(max_a_d(w8, w8, w31), "7b7f420e max_a.d w8, w8, w31"); |
| 1515 COMPARE(max_s_b(w10, w1, w19), "79130a8e max_s.b w10, w1, w19"); |
| 1516 COMPARE(max_s_h(w15, w29, w17), "7931ebce max_s.h w15, w29, w17"); |
| 1517 COMPARE(max_s_w(w15, w29, w14), "794eebce max_s.w w15, w29, w14"); |
| 1518 COMPARE(max_s_d(w25, w24, w3), "7963c64e max_s.d w25, w24, w3"); |
| 1519 COMPARE(max_u_b(w12, w24, w5), "7985c30e max_u.b w12, w24, w5"); |
| 1520 COMPARE(max_u_h(w5, w6, w7), "79a7314e max_u.h w5, w6, w7"); |
| 1521 COMPARE(max_u_w(w16, w4, w7), "79c7240e max_u.w w16, w4, w7"); |
| 1522 COMPARE(max_u_d(w26, w12, w24), "79f8668e max_u.d w26, w12, w24"); |
| 1523 COMPARE(min_a_b(w4, w26, w1), "7b81d10e min_a.b w4, w26, w1"); |
| 1524 COMPARE(min_a_h(w12, w13, w31), "7bbf6b0e min_a.h w12, w13, w31"); |
| 1525 COMPARE(min_a_w(w28, w20, w0), "7bc0a70e min_a.w w28, w20, w0"); |
| 1526 COMPARE(min_a_d(w12, w20, w19), "7bf3a30e min_a.d w12, w20, w19"); |
| 1527 COMPARE(min_s_b(w19, w3, w14), "7a0e1cce min_s.b w19, w3, w14"); |
| 1528 COMPARE(min_s_h(w27, w21, w8), "7a28aece min_s.h w27, w21, w8"); |
| 1529 COMPARE(min_s_w(w0, w14, w30), "7a5e700e min_s.w w0, w14, w30"); |
| 1530 COMPARE(min_s_d(w6, w8, w21), "7a75418e min_s.d w6, w8, w21"); |
| 1531 COMPARE(min_u_b(w22, w26, w8), "7a88d58e min_u.b w22, w26, w8"); |
| 1532 COMPARE(min_u_h(w7, w27, w12), "7aacd9ce min_u.h w7, w27, w12"); |
| 1533 COMPARE(min_u_w(w8, w20, w14), "7acea20e min_u.w w8, w20, w14"); |
| 1534 COMPARE(min_u_d(w26, w14, w15), "7aef768e min_u.d w26, w14, w15"); |
| 1535 COMPARE(mod_s_b(w18, w1, w26), "7b1a0c92 mod_s.b w18, w1, w26"); |
| 1536 COMPARE(mod_s_h(w31, w30, w28), "7b3cf7d2 mod_s.h w31, w30, w28"); |
| 1537 COMPARE(mod_s_w(w2, w6, w13), "7b4d3092 mod_s.w w2, w6, w13"); |
| 1538 COMPARE(mod_s_d(w21, w27, w22), "7b76dd52 mod_s.d w21, w27, w22"); |
| 1539 COMPARE(mod_u_b(w16, w7, w13), "7b8d3c12 mod_u.b w16, w7, w13"); |
| 1540 COMPARE(mod_u_h(w24, w8, w7), "7ba74612 mod_u.h w24, w8, w7"); |
| 1541 COMPARE(mod_u_w(w30, w2, w17), "7bd11792 mod_u.w w30, w2, w17"); |
| 1542 COMPARE(mod_u_d(w31, w2, w25), "7bf917d2 mod_u.d w31, w2, w25"); |
| 1543 COMPARE(msubv_b(w14, w5, w12), "790c2b92 msubv.b w14, w5, w12"); |
| 1544 COMPARE(msubv_h(w6, w7, w30), "793e3992 msubv.h w6, w7, w30"); |
| 1545 COMPARE(msubv_w(w13, w2, w21), "79551352 msubv.w w13, w2, w21"); |
| 1546 COMPARE(msubv_d(w16, w14, w27), "797b7412 msubv.d w16, w14, w27"); |
| 1547 COMPARE(mulv_b(w20, w3, w13), "780d1d12 mulv.b w20, w3, w13"); |
| 1548 COMPARE(mulv_h(w27, w26, w14), "782ed6d2 mulv.h w27, w26, w14"); |
| 1549 COMPARE(mulv_w(w10, w29, w3), "7843ea92 mulv.w w10, w29, w3"); |
| 1550 COMPARE(mulv_d(w7, w19, w29), "787d99d2 mulv.d w7, w19, w29"); |
| 1551 COMPARE(pckev_b(w5, w27, w7), "7907d954 pckev.b w5, w27, w7"); |
| 1552 COMPARE(pckev_h(w1, w4, w27), "793b2054 pckev.h w1, w4, w27"); |
| 1553 COMPARE(pckev_w(w30, w20, w0), "7940a794 pckev.w w30, w20, w0"); |
| 1554 COMPARE(pckev_d(w6, w1, w15), "796f0994 pckev.d w6, w1, w15"); |
| 1555 COMPARE(pckod_b(w18, w28, w30), "799ee494 pckod.b w18, w28, w30"); |
| 1556 COMPARE(pckod_h(w26, w5, w8), "79a82e94 pckod.h w26, w5, w8"); |
| 1557 COMPARE(pckod_w(w9, w4, w2), "79c22254 pckod.w w9, w4, w2"); |
| 1558 COMPARE(pckod_d(w30, w22, w20), "79f4b794 pckod.d w30, w22, w20"); |
| 1559 COMPARE(sld_b(w5, w23, t4), "780cb954 sld.b w5, w23[t4]"); |
| 1560 COMPARE(sld_h(w1, w23, v1), "7823b854 sld.h w1, w23[v1]"); |
| 1561 COMPARE(sld_w(w20, w8, t1), "78494514 sld.w w20, w8[t1]"); |
| 1562 COMPARE(sld_d(w7, w23, fp), "787eb9d4 sld.d w7, w23[fp]"); |
| 1563 COMPARE(sll_b(w3, w0, w17), "781100cd sll.b w3, w0, w17"); |
| 1564 COMPARE(sll_h(w17, w27, w3), "7823dc4d sll.h w17, w27, w3"); |
| 1565 COMPARE(sll_w(w16, w7, w6), "78463c0d sll.w w16, w7, w6"); |
| 1566 COMPARE(sll_d(w9, w0, w26), "787a024d sll.d w9, w0, w26"); |
| 1567 COMPARE(splat_b(w28, w1, at), "78810f14 splat.b w28, w1[at]"); |
| 1568 COMPARE(splat_h(w2, w11, t3), "78ab5894 splat.h w2, w11[t3]"); |
| 1569 COMPARE(splat_w(w22, w0, t3), "78cb0594 splat.w w22, w0[t3]"); |
| 1570 COMPARE(splat_d(w0, w0, v0), "78e20014 splat.d w0, w0[v0]"); |
| 1571 COMPARE(sra_b(w28, w4, w17), "7891270d sra.b w28, w4, w17"); |
| 1572 COMPARE(sra_h(w13, w9, w3), "78a34b4d sra.h w13, w9, w3"); |
| 1573 COMPARE(sra_w(w27, w21, w19), "78d3aecd sra.w w27, w21, w19"); |
| 1574 COMPARE(sra_d(w30, w8, w23), "78f7478d sra.d w30, w8, w23"); |
| 1575 COMPARE(srar_b(w19, w18, w18), "789294d5 srar.b w19, w18, w18"); |
| 1576 COMPARE(srar_h(w7, w23, w8), "78a8b9d5 srar.h w7, w23, w8"); |
| 1577 COMPARE(srar_w(w1, w12, w2), "78c26055 srar.w w1, w12, w2"); |
| 1578 COMPARE(srar_d(w21, w7, w14), "78ee3d55 srar.d w21, w7, w14"); |
| 1579 COMPARE(srl_b(w12, w3, w19), "79131b0d srl.b w12, w3, w19"); |
| 1580 COMPARE(srl_h(w23, w31, w20), "7934fdcd srl.h w23, w31, w20"); |
| 1581 COMPARE(srl_w(w18, w27, w11), "794bdc8d srl.w w18, w27, w11"); |
| 1582 COMPARE(srl_d(w3, w12, w26), "797a60cd srl.d w3, w12, w26"); |
| 1583 COMPARE(srlr_b(w15, w21, w11), "790babd5 srlr.b w15, w21, w11"); |
| 1584 COMPARE(srlr_h(w21, w13, w19), "79336d55 srlr.h w21, w13, w19"); |
| 1585 COMPARE(srlr_w(w6, w30, w3), "7943f195 srlr.w w6, w30, w3"); |
| 1586 COMPARE(srlr_d(w1, w2, w14), "796e1055 srlr.d w1, w2, w14"); |
| 1587 COMPARE(subs_s_b(w25, w15, w1), "78017e51 subs_s.b w25, w15, w1"); |
| 1588 COMPARE(subs_s_h(w28, w25, w22), "7836cf11 subs_s.h w28, w25, w22"); |
| 1589 COMPARE(subs_s_w(w10, w12, w21), "78556291 subs_s.w w10, w12, w21"); |
| 1590 COMPARE(subs_s_d(w4, w20, w18), "7872a111 subs_s.d w4, w20, w18"); |
| 1591 COMPARE(subs_u_b(w21, w6, w25), "78993551 subs_u.b w21, w6, w25"); |
| 1592 COMPARE(subs_u_h(w3, w10, w7), "78a750d1 subs_u.h w3, w10, w7"); |
| 1593 COMPARE(subs_u_w(w9, w15, w10), "78ca7a51 subs_u.w w9, w15, w10"); |
| 1594 COMPARE(subs_u_d(w7, w19, w10), "78ea99d1 subs_u.d w7, w19, w10"); |
| 1595 COMPARE(subsus_u_b(w6, w7, w12), "790c3991 subsus_u.b w6, w7, w12"); |
| 1596 COMPARE(subsus_u_h(w6, w29, w19), |
| 1597 "7933e991 subsus_u.h w6, w29, w19"); |
| 1598 COMPARE(subsus_u_w(w7, w15, w7), "794779d1 subsus_u.w w7, w15, w7"); |
| 1599 COMPARE(subsus_u_d(w9, w3, w15), "796f1a51 subsus_u.d w9, w3, w15"); |
| 1600 COMPARE(subsuu_s_b(w22, w3, w31), |
| 1601 "799f1d91 subsuu_s.b w22, w3, w31"); |
| 1602 COMPARE(subsuu_s_h(w19, w23, w22), |
| 1603 "79b6bcd1 subsuu_s.h w19, w23, w22"); |
| 1604 COMPARE(subsuu_s_w(w9, w10, w13), |
| 1605 "79cd5251 subsuu_s.w w9, w10, w13"); |
| 1606 COMPARE(subsuu_s_d(w5, w6, w0), "79e03151 subsuu_s.d w5, w6, w0"); |
| 1607 COMPARE(subv_b(w6, w13, w19), "7893698e subv.b w6, w13, w19"); |
| 1608 COMPARE(subv_h(w4, w25, w12), "78acc90e subv.h w4, w25, w12"); |
| 1609 COMPARE(subv_w(w27, w27, w11), "78cbdece subv.w w27, w27, w11"); |
| 1610 COMPARE(subv_d(w9, w24, w10), "78eac24e subv.d w9, w24, w10"); |
| 1611 COMPARE(vshf_b(w3, w16, w5), "780580d5 vshf.b w3, w16, w5"); |
| 1612 COMPARE(vshf_h(w20, w19, w8), "78289d15 vshf.h w20, w19, w8"); |
| 1613 COMPARE(vshf_w(w16, w30, w25), "7859f415 vshf.w w16, w30, w25"); |
| 1614 COMPARE(vshf_d(w19, w11, w15), "786f5cd5 vshf.d w19, w11, w15"); |
| 1615 } |
| 1616 VERIFY_RUN(); |
| 1617 } |
| 1618 |
| 1619 TEST(MSA_3RF) { |
| 1620 SET_UP(); |
| 1621 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1622 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1623 |
| 1624 COMPARE(fadd_w(w28, w19, w28), "781c9f1b fadd.w w28, w19, w28"); |
| 1625 COMPARE(fadd_d(w13, w2, w29), "783d135b fadd.d w13, w2, w29"); |
| 1626 COMPARE(fcaf_w(w14, w11, w25), "78195b9a fcaf.w w14, w11, w25"); |
| 1627 COMPARE(fcaf_d(w1, w1, w19), "7833085a fcaf.d w1, w1, w19"); |
| 1628 COMPARE(fceq_w(w1, w23, w16), "7890b85a fceq.w w1, w23, w16"); |
| 1629 COMPARE(fceq_d(w0, w8, w16), "78b0401a fceq.d w0, w8, w16"); |
| 1630 COMPARE(fcle_w(w16, w9, w24), "79984c1a fcle.w w16, w9, w24"); |
| 1631 COMPARE(fcle_d(w27, w14, w1), "79a176da fcle.d w27, w14, w1"); |
| 1632 COMPARE(fclt_w(w28, w8, w8), "7908471a fclt.w w28, w8, w8"); |
| 1633 COMPARE(fclt_d(w30, w25, w11), "792bcf9a fclt.d w30, w25, w11"); |
| 1634 COMPARE(fcne_w(w2, w18, w23), "78d7909c fcne.w w2, w18, w23"); |
| 1635 COMPARE(fcne_d(w14, w20, w15), "78efa39c fcne.d w14, w20, w15"); |
| 1636 COMPARE(fcor_w(w10, w18, w25), "7859929c fcor.w w10, w18, w25"); |
| 1637 COMPARE(fcor_d(w17, w25, w11), "786bcc5c fcor.d w17, w25, w11"); |
| 1638 COMPARE(fcueq_w(w14, w2, w21), "78d5139a fcueq.w w14, w2, w21"); |
| 1639 COMPARE(fcueq_d(w29, w3, w7), "78e71f5a fcueq.d w29, w3, w7"); |
| 1640 COMPARE(fcule_w(w17, w5, w3), "79c32c5a fcule.w w17, w5, w3"); |
| 1641 COMPARE(fcule_d(w31, w1, w30), "79fe0fda fcule.d w31, w1, w30"); |
| 1642 COMPARE(fcult_w(w6, w25, w9), "7949c99a fcult.w w6, w25, w9"); |
| 1643 COMPARE(fcult_d(w27, w8, w17), "797146da fcult.d w27, w8, w17"); |
| 1644 COMPARE(fcun_w(w4, w20, w8), "7848a11a fcun.w w4, w20, w8"); |
| 1645 COMPARE(fcun_d(w29, w11, w3), "78635f5a fcun.d w29, w11, w3"); |
| 1646 COMPARE(fcune_w(w13, w18, w19), "7893935c fcune.w w13, w18, w19"); |
| 1647 COMPARE(fcune_d(w16, w26, w21), "78b5d41c fcune.d w16, w26, w21"); |
| 1648 COMPARE(fdiv_w(w13, w24, w2), "78c2c35b fdiv.w w13, w24, w2"); |
| 1649 COMPARE(fdiv_d(w19, w4, w25), "78f924db fdiv.d w19, w4, w25"); |
| 1650 COMPARE(fexdo_h(w8, w0, w16), "7a10021b fexdo.h w8, w0, w16"); |
| 1651 COMPARE(fexdo_w(w0, w13, w27), "7a3b681b fexdo.w w0, w13, w27"); |
| 1652 COMPARE(fexp2_w(w17, w0, w3), "79c3045b fexp2.w w17, w0, w3"); |
| 1653 COMPARE(fexp2_d(w22, w0, w10), "79ea059b fexp2.d w22, w0, w10"); |
| 1654 COMPARE(fmadd_w(w29, w6, w23), "7917375b fmadd.w w29, w6, w23"); |
| 1655 COMPARE(fmadd_d(w11, w28, w21), "7935e2db fmadd.d w11, w28, w21"); |
| 1656 COMPARE(fmax_w(w0, w23, w13), "7b8db81b fmax.w w0, w23, w13"); |
| 1657 COMPARE(fmax_d(w26, w18, w8), "7ba8969b fmax.d w26, w18, w8"); |
| 1658 COMPARE(fmax_a_w(w10, w16, w10), "7bca829b fmax_a.w w10, w16, w10"); |
| 1659 COMPARE(fmax_a_d(w30, w9, w22), "7bf64f9b fmax_a.d w30, w9, w22"); |
| 1660 COMPARE(fmin_w(w24, w1, w30), "7b1e0e1b fmin.w w24, w1, w30"); |
| 1661 COMPARE(fmin_d(w27, w27, w10), "7b2adedb fmin.d w27, w27, w10"); |
| 1662 COMPARE(fmin_a_w(w10, w29, w20), "7b54ea9b fmin_a.w w10, w29, w20"); |
| 1663 COMPARE(fmin_a_d(w13, w30, w24), "7b78f35b fmin_a.d w13, w30, w24"); |
| 1664 COMPARE(fmsub_w(w17, w25, w0), "7940cc5b fmsub.w w17, w25, w0"); |
| 1665 COMPARE(fmsub_d(w8, w18, w16), "7970921b fmsub.d w8, w18, w16"); |
| 1666 COMPARE(fmul_w(w3, w15, w15), "788f78db fmul.w w3, w15, w15"); |
| 1667 COMPARE(fmul_d(w9, w30, w10), "78aaf25b fmul.d w9, w30, w10"); |
| 1668 COMPARE(fsaf_w(w25, w5, w10), "7a0a2e5a fsaf.w w25, w5, w10"); |
| 1669 COMPARE(fsaf_d(w25, w3, w29), "7a3d1e5a fsaf.d w25, w3, w29"); |
| 1670 COMPARE(fseq_w(w11, w17, w13), "7a8d8ada fseq.w w11, w17, w13"); |
| 1671 COMPARE(fseq_d(w29, w0, w31), "7abf075a fseq.d w29, w0, w31"); |
| 1672 COMPARE(fsle_w(w30, w31, w31), "7b9fff9a fsle.w w30, w31, w31"); |
| 1673 COMPARE(fsle_d(w18, w23, w24), "7bb8bc9a fsle.d w18, w23, w24"); |
| 1674 COMPARE(fslt_w(w12, w5, w6), "7b062b1a fslt.w w12, w5, w6"); |
| 1675 COMPARE(fslt_d(w16, w26, w21), "7b35d41a fslt.d w16, w26, w21"); |
| 1676 COMPARE(fsne_w(w30, w1, w12), "7acc0f9c fsne.w w30, w1, w12"); |
| 1677 COMPARE(fsne_d(w14, w13, w23), "7af76b9c fsne.d w14, w13, w23"); |
| 1678 COMPARE(fsor_w(w27, w13, w27), "7a5b6edc fsor.w w27, w13, w27"); |
| 1679 COMPARE(fsor_d(w12, w24, w11), "7a6bc31c fsor.d w12, w24, w11"); |
| 1680 COMPARE(fsub_w(w31, w26, w1), "7841d7db fsub.w w31, w26, w1"); |
| 1681 COMPARE(fsub_d(w19, w17, w27), "787b8cdb fsub.d w19, w17, w27"); |
| 1682 COMPARE(fsueq_w(w16, w24, w25), "7ad9c41a fsueq.w w16, w24, w25"); |
| 1683 COMPARE(fsueq_d(w18, w14, w14), "7aee749a fsueq.d w18, w14, w14"); |
| 1684 COMPARE(fsule_w(w23, w30, w13), "7bcdf5da fsule.w w23, w30, w13"); |
| 1685 COMPARE(fsule_d(w2, w11, w26), "7bfa589a fsule.d w2, w11, w26"); |
| 1686 COMPARE(fsult_w(w11, w26, w22), "7b56d2da fsult.w w11, w26, w22"); |
| 1687 COMPARE(fsult_d(w6, w23, w30), "7b7eb99a fsult.d w6, w23, w30"); |
| 1688 COMPARE(fsun_w(w3, w18, w28), "7a5c90da fsun.w w3, w18, w28"); |
| 1689 COMPARE(fsun_d(w18, w11, w19), "7a735c9a fsun.d w18, w11, w19"); |
| 1690 COMPARE(fsune_w(w16, w31, w2), "7a82fc1c fsune.w w16, w31, w2"); |
| 1691 COMPARE(fsune_d(w3, w26, w17), "7ab1d0dc fsune.d w3, w26, w17"); |
| 1692 COMPARE(ftq_h(w16, w4, w24), "7a98241b ftq.h w16, w4, w24"); |
| 1693 COMPARE(ftq_w(w5, w5, w25), "7ab9295b ftq.w w5, w5, w25"); |
| 1694 COMPARE(madd_q_h(w16, w20, w10), "794aa41c madd_q.h w16, w20, w10"); |
| 1695 COMPARE(madd_q_w(w28, w2, w9), "7969171c madd_q.w w28, w2, w9"); |
| 1696 COMPARE(maddr_q_h(w8, w18, w9), "7b49921c maddr_q.h w8, w18, w9"); |
| 1697 COMPARE(maddr_q_w(w29, w12, w16), |
| 1698 "7b70675c maddr_q.w w29, w12, w16"); |
| 1699 COMPARE(msub_q_h(w24, w26, w10), "798ad61c msub_q.h w24, w26, w10"); |
| 1700 COMPARE(msub_q_w(w13, w30, w28), "79bcf35c msub_q.w w13, w30, w28"); |
| 1701 COMPARE(msubr_q_h(w12, w21, w11), |
| 1702 "7b8bab1c msubr_q.h w12, w21, w11"); |
| 1703 COMPARE(msubr_q_w(w1, w14, w20), "7bb4705c msubr_q.w w1, w14, w20"); |
| 1704 COMPARE(mul_q_h(w6, w16, w30), "791e819c mul_q.h w6, w16, w30"); |
| 1705 COMPARE(mul_q_w(w16, w1, w4), "79240c1c mul_q.w w16, w1, w4"); |
| 1706 COMPARE(mulr_q_h(w6, w20, w19), "7b13a19c mulr_q.h w6, w20, w19"); |
| 1707 COMPARE(mulr_q_w(w27, w1, w20), "7b340edc mulr_q.w w27, w1, w20"); |
| 1708 } |
| 1709 VERIFY_RUN(); |
| 1710 } |
| 1711 |
| 1712 TEST(MSA_ELM) { |
| 1713 SET_UP(); |
| 1714 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1715 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1716 |
| 1717 COMPARE(copy_s_b(t5, w8, 2), "78824359 copy_s.b t5, w8[2]"); |
| 1718 COMPARE(copy_s_h(at, w25, 0), "78a0c859 copy_s.h at, w25[0]"); |
| 1719 COMPARE(copy_s_w(s6, w5, 1), "78b12d99 copy_s.w s6, w5[1]"); |
| 1720 COMPARE(copy_u_b(s6, w20, 4), "78c4a599 copy_u.b s6, w20[4]"); |
| 1721 COMPARE(copy_u_h(s4, w4, 0), "78e02519 copy_u.h s4, w4[0]"); |
| 1722 COMPARE(sldi_b(w0, w29, 4), "7804e819 sldi.b w0, w29[4]"); |
| 1723 COMPARE(sldi_h(w8, w17, 0), "78208a19 sldi.h w8, w17[0]"); |
| 1724 COMPARE(sldi_w(w20, w27, 2), "7832dd19 sldi.w w20, w27[2]"); |
| 1725 COMPARE(sldi_d(w4, w12, 0), "78386119 sldi.d w4, w12[0]"); |
| 1726 COMPARE(splati_b(w25, w3, 2), "78421e59 splati.b w25, w3[2]"); |
| 1727 COMPARE(splati_h(w24, w28, 1), "7861e619 splati.h w24, w28[1]"); |
| 1728 COMPARE(splati_w(w13, w18, 0), "78709359 splati.w w13, w18[0]"); |
| 1729 COMPARE(splati_d(w28, w1, 0), "78780f19 splati.d w28, w1[0]"); |
| 1730 COMPARE(move_v(w23, w24), "78bec5d9 move.v w23, w24"); |
| 1731 COMPARE(insert_b(w23, 3, sp), "7903edd9 insert.b w23[3], sp"); |
| 1732 COMPARE(insert_h(w20, 2, a1), "79222d19 insert.h w20[2], a1"); |
| 1733 COMPARE(insert_w(w8, 2, s0), "79328219 insert.w w8[2], s0"); |
| 1734 COMPARE(insve_b(w25, 3, w9), "79434e59 insve.b w25[3], w9[0]"); |
| 1735 COMPARE(insve_h(w24, 2, w2), "79621619 insve.h w24[2], w2[0]"); |
| 1736 COMPARE(insve_w(w0, 2, w13), "79726819 insve.w w0[2], w13[0]"); |
| 1737 COMPARE(insve_d(w3, 0, w18), "797890d9 insve.d w3[0], w18[0]"); |
| 1738 COMPARE(cfcmsa(at, MSAIR), "787e0059 cfcmsa at, MSAIR"); |
| 1739 COMPARE(cfcmsa(v0, MSACSR), "787e0899 cfcmsa v0, MSACSR"); |
| 1740 COMPARE(ctcmsa(MSAIR, at), "783e0819 ctcmsa MSAIR, at"); |
| 1741 COMPARE(ctcmsa(MSACSR, v0), "783e1059 ctcmsa MSACSR, v0"); |
| 1742 } |
| 1743 VERIFY_RUN(); |
| 1744 } |
| 1745 |
| 1746 TEST(MSA_BIT) { |
| 1747 SET_UP(); |
| 1748 if (IsMipsArchVariant(kMips32r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
| 1749 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
| 1750 |
| 1751 COMPARE(bclri_b(w21, w30, 2), "79f2f549 bclri.b w21, w30, 2"); |
| 1752 COMPARE(bclri_h(w24, w21, 0), "79e0ae09 bclri.h w24, w21, 0"); |
| 1753 COMPARE(bclri_w(w23, w30, 3), "79c3f5c9 bclri.w w23, w30, 3"); |
| 1754 COMPARE(bclri_d(w9, w11, 0), "79805a49 bclri.d w9, w11, 0"); |
| 1755 COMPARE(binsli_b(w25, w12, 1), "7b716649 binsli.b w25, w12, 1"); |
| 1756 COMPARE(binsli_h(w21, w22, 0), "7b60b549 binsli.h w21, w22, 0"); |
| 1757 COMPARE(binsli_w(w22, w4, 0), "7b402589 binsli.w w22, w4, 0"); |
| 1758 COMPARE(binsli_d(w6, w2, 6), "7b061189 binsli.d w6, w2, 6"); |
| 1759 COMPARE(binsri_b(w15, w19, 0), "7bf09bc9 binsri.b w15, w19, 0"); |
| 1760 COMPARE(binsri_h(w8, w30, 1), "7be1f209 binsri.h w8, w30, 1"); |
| 1761 COMPARE(binsri_w(w2, w19, 5), "7bc59889 binsri.w w2, w19, 5"); |
| 1762 COMPARE(binsri_d(w18, w20, 1), "7b81a489 binsri.d w18, w20, 1"); |
| 1763 COMPARE(bnegi_b(w24, w19, 0), "7af09e09 bnegi.b w24, w19, 0"); |
| 1764 COMPARE(bnegi_h(w28, w11, 3), "7ae35f09 bnegi.h w28, w11, 3"); |
| 1765 COMPARE(bnegi_w(w1, w27, 5), "7ac5d849 bnegi.w w1, w27, 5"); |
| 1766 COMPARE(bnegi_d(w4, w21, 1), "7a81a909 bnegi.d w4, w21, 1"); |
| 1767 COMPARE(bseti_b(w18, w8, 0), "7a704489 bseti.b w18, w8, 0"); |
| 1768 COMPARE(bseti_h(w24, w14, 2), "7a627609 bseti.h w24, w14, 2"); |
| 1769 COMPARE(bseti_w(w9, w18, 4), "7a449249 bseti.w w9, w18, 4"); |
| 1770 COMPARE(bseti_d(w7, w15, 1), "7a0179c9 bseti.d w7, w15, 1"); |
| 1771 COMPARE(sat_s_b(w31, w31, 2), "7872ffca sat_s.b w31, w31, 2"); |
| 1772 COMPARE(sat_s_h(w19, w19, 0), "78609cca sat_s.h w19, w19, 0"); |
| 1773 COMPARE(sat_s_w(w19, w29, 0), "7840ecca sat_s.w w19, w29, 0"); |
| 1774 COMPARE(sat_s_d(w11, w22, 0), "7800b2ca sat_s.d w11, w22, 0"); |
| 1775 COMPARE(sat_u_b(w1, w13, 3), "78f3684a sat_u.b w1, w13, 3"); |
| 1776 COMPARE(sat_u_h(w30, w24, 4), "78e4c78a sat_u.h w30, w24, 4"); |
| 1777 COMPARE(sat_u_w(w31, w13, 0), "78c06fca sat_u.w w31, w13, 0"); |
| 1778 COMPARE(sat_u_d(w29, w16, 5), "7885874a sat_u.d w29, w16, 5"); |
| 1779 COMPARE(slli_b(w23, w10, 1), "787155c9 slli.b w23, w10, 1"); |
| 1780 COMPARE(slli_h(w9, w18, 1), "78619249 slli.h w9, w18, 1"); |
| 1781 COMPARE(slli_w(w11, w29, 4), "7844eac9 slli.w w11, w29, 4"); |
| 1782 COMPARE(slli_d(w25, w20, 1), "7801a649 slli.d w25, w20, 1"); |
| 1783 COMPARE(srai_b(w24, w29, 1), "78f1ee09 srai.b w24, w29, 1"); |
| 1784 COMPARE(srai_h(w1, w6, 0), "78e03049 srai.h w1, w6, 0"); |
| 1785 COMPARE(srai_w(w7, w26, 1), "78c1d1c9 srai.w w7, w26, 1"); |
| 1786 COMPARE(srai_d(w20, w25, 3), "7883cd09 srai.d w20, w25, 3"); |
| 1787 COMPARE(srari_b(w5, w25, 0), "7970c94a srari.b w5, w25, 0"); |
| 1788 COMPARE(srari_h(w7, w6, 4), "796431ca srari.h w7, w6, 4"); |
| 1789 COMPARE(srari_w(w17, w11, 5), "79455c4a srari.w w17, w11, 5"); |
| 1790 COMPARE(srari_d(w21, w25, 5), "7905cd4a srari.d w21, w25, 5"); |
| 1791 COMPARE(srli_b(w2, w0, 2), "79720089 srli.b w2, w0, 2"); |
| 1792 COMPARE(srli_h(w31, w31, 2), "7962ffc9 srli.h w31, w31, 2"); |
| 1793 COMPARE(srli_w(w5, w9, 4), "79444949 srli.w w5, w9, 4"); |
| 1794 COMPARE(srli_d(w27, w26, 5), "7905d6c9 srli.d w27, w26, 5"); |
| 1795 COMPARE(srlri_b(w18, w3, 0), "79f01c8a srlri.b w18, w3, 0"); |
| 1796 COMPARE(srlri_h(w1, w2, 3), "79e3104a srlri.h w1, w2, 3"); |
| 1797 COMPARE(srlri_w(w11, w22, 2), "79c2b2ca srlri.w w11, w22, 2"); |
| 1798 COMPARE(srlri_d(w24, w10, 6), "7986560a srlri.d w24, w10, 6"); |
| 1799 } |
| 1800 VERIFY_RUN(); |
| 1801 } |
OLD | NEW |