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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 if (CpuFeatures::IsSupported(NEON)) { | 925 if (CpuFeatures::IsSupported(NEON)) { |
926 CpuFeatureScope scope(&assm, NEON); | 926 CpuFeatureScope scope(&assm, NEON); |
927 COMPARE(vld1(Neon8, NeonListOperand(d4, 4), NeonMemOperand(r1)), | 927 COMPARE(vld1(Neon8, NeonListOperand(d4, 4), NeonMemOperand(r1)), |
928 "f421420f vld1.8 {d4, d5, d6, d7}, [r1]"); | 928 "f421420f vld1.8 {d4, d5, d6, d7}, [r1]"); |
929 COMPARE(vst1(Neon16, NeonListOperand(d17, 4), NeonMemOperand(r9)), | 929 COMPARE(vst1(Neon16, NeonListOperand(d17, 4), NeonMemOperand(r9)), |
930 "f449124f vst1.16 {d17, d18, d19, d20}, [r9]"); | 930 "f449124f vst1.16 {d17, d18, d19, d20}, [r9]"); |
931 COMPARE(vmovl(NeonU8, q3, d1), | 931 COMPARE(vmovl(NeonU8, q3, d1), |
932 "f3886a11 vmovl.u8 q3, d1"); | 932 "f3886a11 vmovl.u8 q3, d1"); |
933 COMPARE(vmovl(NeonU8, q4, d2), | 933 COMPARE(vmovl(NeonU8, q4, d2), |
934 "f3888a12 vmovl.u8 q4, d2"); | 934 "f3888a12 vmovl.u8 q4, d2"); |
935 COMPARE(vswp(d0, d31), | |
936 "f3b2002f vswp d0, d31"); | |
937 COMPARE(vswp(d16, d14), | |
938 "f3f2000e vswp d16, d14"); | |
939 } | 935 } |
940 | 936 |
941 VERIFY_RUN(); | 937 VERIFY_RUN(); |
942 } | 938 } |
943 | 939 |
944 | 940 |
945 TEST(LoadStore) { | 941 TEST(LoadStore) { |
946 SET_UP(); | 942 SET_UP(); |
947 | 943 |
948 COMPARE(ldrb(r0, MemOperand(r1)), | 944 COMPARE(ldrb(r0, MemOperand(r1)), |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 | 1215 |
1220 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); | 1216 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); |
1221 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); | 1217 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); |
1222 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); | 1218 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); |
1223 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); | 1219 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); |
1224 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); | 1220 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); |
1225 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); | 1221 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); |
1226 | 1222 |
1227 VERIFY_RUN(); | 1223 VERIFY_RUN(); |
1228 } | 1224 } |
OLD | NEW |