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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1310 SET_UP(); | 1310 SET_UP(); |
1311 if ((kArchVariant == kMips64r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { | 1311 if ((kArchVariant == kMips64r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
1312 CpuFeatureScope fscope(&assm, MIPS_SIMD); | 1312 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
1313 | 1313 |
1314 COMPARE_MSA_BRANCH(bnz_b(w0, 1), "47800001 bnz.b w0, 1", 1); | 1314 COMPARE_MSA_BRANCH(bnz_b(w0, 1), "47800001 bnz.b w0, 1", 1); |
1315 COMPARE_MSA_BRANCH(bnz_h(w1, -1), "47a1ffff bnz.h w1, -1", -1); | 1315 COMPARE_MSA_BRANCH(bnz_h(w1, -1), "47a1ffff bnz.h w1, -1", -1); |
1316 COMPARE_MSA_BRANCH(bnz_w(w2, 32767), "47c27fff bnz.w w2, 32767", | 1316 COMPARE_MSA_BRANCH(bnz_w(w2, 32767), "47c27fff bnz.w w2, 32767", |
1317 32767); | 1317 32767); |
1318 COMPARE_MSA_BRANCH(bnz_d(w3, -32768), "47e38000 bnz.d w3, -32768", | 1318 COMPARE_MSA_BRANCH(bnz_d(w3, -32768), "47e38000 bnz.d w3, -32768", |
1319 -32768); | 1319 -32768); |
1320 COMPARE_MSA_BRANCH(bnz_v(w0, 0), "45e00000 bnz.v w0, 0", 0); | 1320 COMPARE_MSA_BRANCH(bnz_v(w0, (int16_t)0), "45e00000 bnz.v w0, 0", 0); |
ivica.bogosavljevic
2017/05/15 14:59:06
static_cast<int16_t>
dusan.simicic
2017/05/19 08:55:01
Done.
| |
1321 COMPARE_MSA_BRANCH(bz_b(w0, 1), "47000001 bz.b w0, 1", 1); | 1321 COMPARE_MSA_BRANCH(bz_b(w0, 1), "47000001 bz.b w0, 1", 1); |
1322 COMPARE_MSA_BRANCH(bz_h(w1, -1), "4721ffff bz.h w1, -1", -1); | 1322 COMPARE_MSA_BRANCH(bz_h(w1, -1), "4721ffff bz.h w1, -1", -1); |
1323 COMPARE_MSA_BRANCH(bz_w(w2, 32767), "47427fff bz.w w2, 32767", | 1323 COMPARE_MSA_BRANCH(bz_w(w2, 32767), "47427fff bz.w w2, 32767", |
1324 32767); | 1324 32767); |
1325 COMPARE_MSA_BRANCH(bz_d(w3, -32768), "47638000 bz.d w3, -32768", | 1325 COMPARE_MSA_BRANCH(bz_d(w3, -32768), "47638000 bz.d w3, -32768", |
1326 -32768); | 1326 -32768); |
1327 COMPARE_MSA_BRANCH(bz_v(w0, 0), "45600000 bz.v w0, 0", 0); | 1327 COMPARE_MSA_BRANCH(bz_v(w0, (int16_t)0), "45600000 bz.v w0, 0", 0); |
1328 } | 1328 } |
1329 VERIFY_RUN(); | 1329 VERIFY_RUN(); |
1330 } | 1330 } |
1331 | 1331 |
1332 TEST(MSA_MI10) { | 1332 TEST(MSA_MI10) { |
1333 SET_UP(); | 1333 SET_UP(); |
1334 if ((kArchVariant == kMips64r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { | 1334 if ((kArchVariant == kMips64r6) && CpuFeatures::IsSupported(MIPS_SIMD)) { |
1335 CpuFeatureScope fscope(&assm, MIPS_SIMD); | 1335 CpuFeatureScope fscope(&assm, MIPS_SIMD); |
1336 | 1336 |
1337 COMPARE(ld_b(w0, MemOperand(at, -512)), | 1337 COMPARE(ld_b(w0, MemOperand(at, -512)), |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1982 COMPARE(srli_h(w31, w31, 2), "7962ffc9 srli.h w31, w31, 2"); | 1982 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"); | 1983 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"); | 1984 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"); | 1985 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"); | 1986 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"); | 1987 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"); | 1988 COMPARE(srlri_d(w24, w10, 6), "7986560a srlri.d w24, w10, 6"); |
1989 } | 1989 } |
1990 VERIFY_RUN(); | 1990 VERIFY_RUN(); |
1991 } | 1991 } |
OLD | NEW |