Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: test/cctest/test-disasm-arm.cc

Issue 2523933002: [Turbofan] Add ARM support for simd128 moves and swaps. (Closed)
Patch Set: Rebase. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(d0, d1, d2),
952 "f3010112 veor d0, d1, d2");
953 COMPARE(veor(d0, d30, d31),
954 "f30e01bf veor d0, d30, d31");
955 COMPARE(veor(q0, q1, q2),
956 "f3020154 veor q0, q1, q2");
957 COMPARE(veor(q15, q0, q8),
958 "f340e170 veor q15, q0, q8");
943 } 959 }
944 960
945 VERIFY_RUN(); 961 VERIFY_RUN();
946 } 962 }
947 963
948 964
949 TEST(LoadStore) { 965 TEST(LoadStore) {
950 SET_UP(); 966 SET_UP();
951 967
952 COMPARE(ldrb(r0, MemOperand(r1)), 968 COMPARE(ldrb(r0, MemOperand(r1)),
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 1239
1224 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); 1240 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]");
1225 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); 1241 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]");
1226 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); 1242 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]");
1227 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); 1243 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]");
1228 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); 1244 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]");
1229 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); 1245 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]");
1230 1246
1231 VERIFY_RUN(); 1247 VERIFY_RUN();
1232 } 1248 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698