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

Unified Diff: runtime/vm/assembler_arm_test.cc

Issue 21004011: Implements the two argument shuffle SIMD instruction for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm_test.cc
===================================================================
--- runtime/vm/assembler_arm_test.cc (revision 25620)
+++ runtime/vm/assembler_arm_test.cc (working copy)
@@ -2638,6 +2638,40 @@
}
+ASSEMBLER_TEST_GENERATE(Vzipqw, assembler) {
+ if (CPUFeatures::neon_supported()) {
+ __ LoadSImmediate(S0, 0.0);
+ __ LoadSImmediate(S1, 1.0);
+ __ LoadSImmediate(S2, 2.0);
+ __ LoadSImmediate(S3, 3.0);
+ __ LoadSImmediate(S4, 4.0);
+ __ LoadSImmediate(S5, 5.0);
+ __ LoadSImmediate(S6, 6.0);
+ __ LoadSImmediate(S7, 7.0);
+
+ __ vzipqw(Q0, Q1);
+
+ __ vsubqs(Q0, Q1, Q0);
+
+ __ vadds(S0, S0, S1);
+ __ vadds(S0, S0, S2);
+ __ vadds(S0, S0, S3);
+ __ bx(LR);
+ } else {
+ __ LoadSImmediate(S0, 8.0);
+ __ bx(LR);
+ }
+}
+
+
+ASSEMBLER_TEST_RUN(Vzipqw, test) {
+ EXPECT(test != NULL);
+ typedef float (*Vzipqw)();
+ float res = EXECUTE_TEST_CODE_FLOAT(Vzipqw, test->entry());
+ EXPECT_FLOAT_EQ(8.0, res, 0.0001f);
+}
+
+
ASSEMBLER_TEST_GENERATE(Vceqqi32, assembler) {
if (CPUFeatures::neon_supported()) {
__ mov(R0, ShifterOperand(1));
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698