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

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

Issue 2649323012: [ARM] Add Neon saturating add and subtract instructions. (Closed)
Patch Set: Add static_asserts on Widen, Clamp. Created 3 years, 10 months 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 COMPARE(vmax(NeonS32, q15, q0, q8), 1040 COMPARE(vmax(NeonS32, q15, q0, q8),
1041 "f260e660 vmax.s32 q15, q0, q8"); 1041 "f260e660 vmax.s32 q15, q0, q8");
1042 COMPARE(vadd(q15, q0, q8), 1042 COMPARE(vadd(q15, q0, q8),
1043 "f240ed60 vadd.f32 q15, q0, q8"); 1043 "f240ed60 vadd.f32 q15, q0, q8");
1044 COMPARE(vadd(Neon8, q0, q1, q2), 1044 COMPARE(vadd(Neon8, q0, q1, q2),
1045 "f2020844 vadd.i8 q0, q1, q2"); 1045 "f2020844 vadd.i8 q0, q1, q2");
1046 COMPARE(vadd(Neon16, q1, q2, q8), 1046 COMPARE(vadd(Neon16, q1, q2, q8),
1047 "f2142860 vadd.i16 q1, q2, q8"); 1047 "f2142860 vadd.i16 q1, q2, q8");
1048 COMPARE(vadd(Neon32, q15, q0, q8), 1048 COMPARE(vadd(Neon32, q15, q0, q8),
1049 "f260e860 vadd.i32 q15, q0, q8"); 1049 "f260e860 vadd.i32 q15, q0, q8");
1050 COMPARE(vqadd(NeonU8, q0, q1, q2),
1051 "f3020054 vqadd.u8 q0, q1, q2");
1052 COMPARE(vqadd(NeonS16, q1, q2, q8),
1053 "f2142070 vqadd.s16 q1, q2, q8");
1054 COMPARE(vqadd(NeonU32, q15, q0, q8),
1055 "f360e070 vqadd.u32 q15, q0, q8");
1050 COMPARE(vsub(q15, q0, q8), 1056 COMPARE(vsub(q15, q0, q8),
1051 "f260ed60 vsub.f32 q15, q0, q8"); 1057 "f260ed60 vsub.f32 q15, q0, q8");
1052 COMPARE(vsub(Neon8, q0, q1, q2), 1058 COMPARE(vsub(Neon8, q0, q1, q2),
1053 "f3020844 vsub.i8 q0, q1, q2"); 1059 "f3020844 vsub.i8 q0, q1, q2");
1054 COMPARE(vsub(Neon16, q1, q2, q8), 1060 COMPARE(vsub(Neon16, q1, q2, q8),
1055 "f3142860 vsub.i16 q1, q2, q8"); 1061 "f3142860 vsub.i16 q1, q2, q8");
1056 COMPARE(vsub(Neon32, q15, q0, q8), 1062 COMPARE(vsub(Neon32, q15, q0, q8),
1057 "f360e860 vsub.i32 q15, q0, q8"); 1063 "f360e860 vsub.i32 q15, q0, q8");
1064 COMPARE(vqsub(NeonU8, q0, q1, q2),
1065 "f3020254 vqsub.u8 q0, q1, q2");
1066 COMPARE(vqsub(NeonS16, q1, q2, q8),
1067 "f2142270 vqsub.s16 q1, q2, q8");
1068 COMPARE(vqsub(NeonU32, q15, q0, q8),
1069 "f360e270 vqsub.u32 q15, q0, q8");
1058 COMPARE(vmul(q0, q1, q2), 1070 COMPARE(vmul(q0, q1, q2),
1059 "f3020d54 vmul.f32 q0, q1, q2"); 1071 "f3020d54 vmul.f32 q0, q1, q2");
1060 COMPARE(vmul(Neon8, q0, q1, q2), 1072 COMPARE(vmul(Neon8, q0, q1, q2),
1061 "f2020954 vmul.i8 q0, q1, q2"); 1073 "f2020954 vmul.i8 q0, q1, q2");
1062 COMPARE(vmul(Neon16, q1, q2, q8), 1074 COMPARE(vmul(Neon16, q1, q2, q8),
1063 "f2142970 vmul.i16 q1, q2, q8"); 1075 "f2142970 vmul.i16 q1, q2, q8");
1064 COMPARE(vmul(Neon32, q15, q0, q8), 1076 COMPARE(vmul(Neon32, q15, q0, q8),
1065 "f260e970 vmul.i32 q15, q0, q8"); 1077 "f260e970 vmul.i32 q15, q0, q8");
1066 COMPARE(vshl(NeonS8, q15, q0, 6), 1078 COMPARE(vshl(NeonS8, q15, q0, 6),
1067 "f2cee550 vshl.i8 q15, q0, #6"); 1079 "f2cee550 vshl.i8 q15, q0, #6");
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 1434
1423 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); 1435 COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]");
1424 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); 1436 COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]");
1425 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); 1437 COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]");
1426 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); 1438 COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]");
1427 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); 1439 COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]");
1428 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); 1440 COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]");
1429 1441
1430 VERIFY_RUN(); 1442 VERIFY_RUN();
1431 } 1443 }
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