OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
929 if (CpuFeatures::IsSupported(NEON)) { | 929 if (CpuFeatures::IsSupported(NEON)) { |
930 CpuFeatureScope scope(&assm, NEON); | 930 CpuFeatureScope scope(&assm, NEON); |
931 COMPARE(vld1(Neon8, NeonListOperand(d4, 4), NeonMemOperand(r1)), | 931 COMPARE(vld1(Neon8, NeonListOperand(d4, 4), NeonMemOperand(r1)), |
932 "f421420f vld1.8 {d4, d5, d6, d7}, [r1]"); | 932 "f421420f vld1.8 {d4, d5, d6, d7}, [r1]"); |
933 COMPARE(vst1(Neon16, NeonListOperand(d17, 4), NeonMemOperand(r9)), | 933 COMPARE(vst1(Neon16, NeonListOperand(d17, 4), NeonMemOperand(r9)), |
934 "f449124f vst1.16 {d17, d18, d19, d20}, [r9]"); | 934 "f449124f vst1.16 {d17, d18, d19, d20}, [r9]"); |
935 COMPARE(vmovl(NeonU8, q3, d1), | 935 COMPARE(vmovl(NeonU8, q3, d1), |
936 "f3886a11 vmovl.u8 q3, d1"); | 936 "f3886a11 vmovl.u8 q3, d1"); |
937 COMPARE(vmovl(NeonU8, q4, d2), | 937 COMPARE(vmovl(NeonU8, q4, d2), |
938 "f3888a12 vmovl.u8 q4, d2"); | 938 "f3888a12 vmovl.u8 q4, d2"); |
939 COMPARE(vmov(q0, q15), | |
940 "f22e01fe vmov q0, q15"); | |
941 COMPARE(vmov(q8, q9), | |
942 "f26201f2 vmov q8, q9"); | |
939 COMPARE(vswp(d0, d31), | 943 COMPARE(vswp(d0, d31), |
940 "f3b2002f vswp d0, d31"); | 944 "f3b2002f vswp d0, d31"); |
941 COMPARE(vswp(d16, d14), | 945 COMPARE(vswp(d16, d14), |
942 "f3f2000e vswp d16, d14"); | 946 "f3f2000e vswp d16, d14"); |
947 COMPARE(vswp(q0, q15), | |
948 "f3b2006e vswp q0, q15"); | |
949 COMPARE(vswp(q8, q9), | |
950 "f3f20062 vswp q8, q9"); | |
951 COMPARE(veor(q0, q1, q2), | |
martyn.capewell
2016/11/24 11:40:58
Add a test for veor on D registers.
bbudge
2016/11/24 13:48:05
Done.
| |
952 "f3020154 veor q0, q1, q2"); | |
953 COMPARE(veor(q15, q0, q8), | |
954 "f340e170 veor q15, q0, q8"); | |
943 } | 955 } |
944 | 956 |
945 VERIFY_RUN(); | 957 VERIFY_RUN(); |
946 } | 958 } |
947 | 959 |
948 | 960 |
949 TEST(LoadStore) { | 961 TEST(LoadStore) { |
950 SET_UP(); | 962 SET_UP(); |
951 | 963 |
952 COMPARE(ldrb(r0, MemOperand(r1)), | 964 COMPARE(ldrb(r0, MemOperand(r1)), |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1223 | 1235 |
1224 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); | 1236 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); |
1225 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); | 1237 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); |
1226 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); | 1238 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); |
1227 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); | 1239 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); |
1228 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); | 1240 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); |
1229 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); | 1241 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); |
1230 | 1242 |
1231 VERIFY_RUN(); | 1243 VERIFY_RUN(); |
1232 } | 1244 } |
OLD | NEW |