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

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

Issue 2579913002: [ARM] Add NEON instructions for implementing SIMD. (Closed)
Patch Set: Review comments. 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') | test/cctest/test-macro-assembler-arm.cc » ('j') | 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 COMPARE(vdup(q15, s2), 994 COMPARE(vdup(q15, s2),
995 "f3f4ec41 vdup q15, d1[0]"); 995 "f3f4ec41 vdup q15, d1[0]");
996 COMPARE(vcvt_f32_s32(q15, q1), 996 COMPARE(vcvt_f32_s32(q15, q1),
997 "f3fbe642 vcvt.f32.s32 q15, q1"); 997 "f3fbe642 vcvt.f32.s32 q15, q1");
998 COMPARE(vcvt_f32_u32(q8, q9), 998 COMPARE(vcvt_f32_u32(q8, q9),
999 "f3fb06e2 vcvt.f32.u32 q8, q9"); 999 "f3fb06e2 vcvt.f32.u32 q8, q9");
1000 COMPARE(vcvt_s32_f32(q15, q1), 1000 COMPARE(vcvt_s32_f32(q15, q1),
1001 "f3fbe742 vcvt.s32.f32 q15, q1"); 1001 "f3fbe742 vcvt.s32.f32 q15, q1");
1002 COMPARE(vcvt_u32_f32(q8, q9), 1002 COMPARE(vcvt_u32_f32(q8, q9),
1003 "f3fb07e2 vcvt.u32.f32 q8, q9"); 1003 "f3fb07e2 vcvt.u32.f32 q8, q9");
1004 COMPARE(vabs(q0, q1),
1005 "f3b90742 vabs.f32 q0, q1");
1006 COMPARE(vabs(Neon8, q6, q7),
1007 "f3b1c34e vabs.s8 q6, q7");
1008 COMPARE(vabs(Neon16, q0, q1),
1009 "f3b50342 vabs.s16 q0, q1");
1010 COMPARE(vabs(Neon32, q0, q1),
1011 "f3b90342 vabs.s32 q0, q1");
1012 COMPARE(vneg(q0, q1),
1013 "f3b907c2 vneg.f32 q0, q1");
1014 COMPARE(vneg(Neon8, q6, q7),
1015 "f3b1c3ce vneg.s8 q6, q7");
1016 COMPARE(vneg(Neon16, q0, q1),
1017 "f3b503c2 vneg.s16 q0, q1");
1018 COMPARE(vneg(Neon32, q0, q1),
1019 "f3b903c2 vneg.s32 q0, q1");
1004 COMPARE(veor(d0, d1, d2), 1020 COMPARE(veor(d0, d1, d2),
1005 "f3010112 veor d0, d1, d2"); 1021 "f3010112 veor d0, d1, d2");
1006 COMPARE(veor(d0, d30, d31), 1022 COMPARE(veor(d0, d30, d31),
1007 "f30e01bf veor d0, d30, d31"); 1023 "f30e01bf veor d0, d30, d31");
1008 COMPARE(veor(q0, q1, q2), 1024 COMPARE(veor(q0, q1, q2),
1009 "f3020154 veor q0, q1, q2"); 1025 "f3020154 veor q0, q1, q2");
1010 COMPARE(veor(q15, q0, q8), 1026 COMPARE(veor(q15, q0, q8),
1011 "f340e170 veor q15, q0, q8"); 1027 "f340e170 veor q15, q0, q8");
1012 COMPARE(vadd(q15, q0, q8), 1028 COMPARE(vadd(q15, q0, q8),
1013 "f240ed60 vadd.f32 q15, q0, q8"); 1029 "f240ed60 vadd.f32 q15, q0, q8");
1014 COMPARE(vadd(Neon8, q0, q1, q2), 1030 COMPARE(vadd(Neon8, q0, q1, q2),
1015 "f2020844 vadd.i8 q0, q1, q2"); 1031 "f2020844 vadd.i8 q0, q1, q2");
1016 COMPARE(vadd(Neon16, q1, q2, q8), 1032 COMPARE(vadd(Neon16, q1, q2, q8),
1017 "f2142860 vadd.i16 q1, q2, q8"); 1033 "f2142860 vadd.i16 q1, q2, q8");
1018 COMPARE(vadd(Neon32, q15, q0, q8), 1034 COMPARE(vadd(Neon32, q15, q0, q8),
1019 "f260e860 vadd.i32 q15, q0, q8"); 1035 "f260e860 vadd.i32 q15, q0, q8");
1020 COMPARE(vsub(q15, q0, q8), 1036 COMPARE(vsub(q15, q0, q8),
1021 "f260ed60 vsub.f32 q15, q0, q8"); 1037 "f260ed60 vsub.f32 q15, q0, q8");
1022 COMPARE(vsub(Neon8, q0, q1, q2), 1038 COMPARE(vsub(Neon8, q0, q1, q2),
1023 "f3020844 vsub.i8 q0, q1, q2"); 1039 "f3020844 vsub.i8 q0, q1, q2");
1024 COMPARE(vsub(Neon16, q1, q2, q8), 1040 COMPARE(vsub(Neon16, q1, q2, q8),
1025 "f3142860 vsub.i16 q1, q2, q8"); 1041 "f3142860 vsub.i16 q1, q2, q8");
1026 COMPARE(vsub(Neon32, q15, q0, q8), 1042 COMPARE(vsub(Neon32, q15, q0, q8),
1027 "f360e860 vsub.i32 q15, q0, q8"); 1043 "f360e860 vsub.i32 q15, q0, q8");
1044 COMPARE(vmul(q0, q1, q2),
1045 "f3020d54 vmul.f32 q0, q1, q2");
1046 COMPARE(vmul(Neon8, q0, q1, q2),
1047 "f2020954 vmul.i8 q0, q1, q2");
1048 COMPARE(vmul(Neon16, q1, q2, q8),
1049 "f2142970 vmul.i16 q1, q2, q8");
1050 COMPARE(vmul(Neon32, q15, q0, q8),
1051 "f260e970 vmul.i32 q15, q0, q8");
1028 COMPARE(vtst(Neon8, q0, q1, q2), 1052 COMPARE(vtst(Neon8, q0, q1, q2),
1029 "f2020854 vtst.i8 q0, q1, q2"); 1053 "f2020854 vtst.i8 q0, q1, q2");
1030 COMPARE(vtst(Neon16, q1, q2, q8), 1054 COMPARE(vtst(Neon16, q1, q2, q8),
1031 "f2142870 vtst.i16 q1, q2, q8"); 1055 "f2142870 vtst.i16 q1, q2, q8");
1032 COMPARE(vtst(Neon32, q15, q0, q8), 1056 COMPARE(vtst(Neon32, q15, q0, q8),
1033 "f260e870 vtst.i32 q15, q0, q8"); 1057 "f260e870 vtst.i32 q15, q0, q8");
1034 COMPARE(vceq(Neon8, q0, q1, q2), 1058 COMPARE(vceq(Neon8, q0, q1, q2),
1035 "f3020854 vceq.i8 q0, q1, q2"); 1059 "f3020854 vceq.i8 q0, q1, q2");
1036 COMPARE(vceq(Neon16, q1, q2, q8), 1060 COMPARE(vceq(Neon16, q1, q2, q8),
1037 "f3142870 vceq.i16 q1, q2, q8"); 1061 "f3142870 vceq.i16 q1, q2, q8");
1038 COMPARE(vceq(Neon32, q15, q0, q8), 1062 COMPARE(vceq(Neon32, q15, q0, q8),
1039 "f360e870 vceq.i32 q15, q0, q8"); 1063 "f360e870 vceq.i32 q15, q0, q8");
1040 COMPARE(vbsl(q0, q1, q2), 1064 COMPARE(vbsl(q0, q1, q2),
1041 "f3120154 vbsl q0, q1, q2"); 1065 "f3120154 vbsl q0, q1, q2");
1042 COMPARE(vbsl(q15, q0, q8), 1066 COMPARE(vbsl(q15, q0, q8),
1043 "f350e170 vbsl q15, q0, q8"); 1067 "f350e170 vbsl q15, q0, q8");
1068 COMPARE(vext(q15, q0, q8, 3),
1069 "f2f0e360 vext.8 q15, q0, q8, #3");
1070 COMPARE(vzip(Neon16, q15, q0),
1071 "f3f6e1c0 vzip.16 q15, q0");
1072 COMPARE(vrev64(Neon8, q15, q0),
1073 "f3f0e040 vrev64.8 q15, q0");
1044 COMPARE(vtbl(d0, NeonListOperand(d1, 1), d2), 1074 COMPARE(vtbl(d0, NeonListOperand(d1, 1), d2),
1045 "f3b10802 vtbl.8 d0, {d1}, d2"); 1075 "f3b10802 vtbl.8 d0, {d1}, d2");
1046 COMPARE(vtbl(d31, NeonListOperand(d0, 2), d4), 1076 COMPARE(vtbl(d31, NeonListOperand(d0, 2), d4),
1047 "f3f0f904 vtbl.8 d31, {d0, d1}, d4"); 1077 "f3f0f904 vtbl.8 d31, {d0, d1}, d4");
1048 COMPARE(vtbl(d15, NeonListOperand(d1, 3), d5), 1078 COMPARE(vtbl(d15, NeonListOperand(d1, 3), d5),
1049 "f3b1fa05 vtbl.8 d15, {d1, d2, d3}, d5"); 1079 "f3b1fa05 vtbl.8 d15, {d1, d2, d3}, d5");
1050 COMPARE(vtbl(d15, NeonListOperand(d1, 4), d5), 1080 COMPARE(vtbl(d15, NeonListOperand(d1, 4), d5),
1051 "f3b1fb05 vtbl.8 d15, {d1, d2, d3, d4}, d5"); 1081 "f3b1fb05 vtbl.8 d15, {d1, d2, d3, d4}, d5");
1052 COMPARE(vtbx(d0, NeonListOperand(d1, 1), d2), 1082 COMPARE(vtbx(d0, NeonListOperand(d1, 1), d2),
1053 "f3b10842 vtbx.8 d0, {d1}, d2"); 1083 "f3b10842 vtbx.8 d0, {d1}, d2");
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1370
1341 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); 1371 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]");
1342 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); 1372 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]");
1343 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); 1373 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]");
1344 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); 1374 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]");
1345 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); 1375 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]");
1346 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); 1376 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]");
1347 1377
1348 VERIFY_RUN(); 1378 VERIFY_RUN();
1349 } 1379 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/cctest/test-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698