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

Unified Diff: runtime/vm/simulator_arm.cc

Issue 19776007: Enables a SIMD test 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/intermediate_language_arm.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_arm.cc
===================================================================
--- runtime/vm/simulator_arm.cc (revision 25157)
+++ runtime/vm/simulator_arm.cc (working copy)
@@ -3007,6 +3007,56 @@
for (int i = 0; i < 4; i++) {
s8d.data_[i].f = s8n.data_[i].f * s8m.data_[i].f;
}
+ } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) &&
+ (instr->Bits(20, 2) == 0) && (instr->Bits(23, 2) == 2)) {
+ // Format(instr, "veorq 'qd, 'qn, 'qm");
+ for (int i = 0; i < 4; i++) {
+ s8d.data_[i].u = s8n.data_[i].u ^ s8m.data_[i].u;
+ }
+ } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) &&
+ (instr->Bits(20, 2) == 2) && (instr->Bits(23, 2) == 0)) {
+ if (qm == qn) {
+ // Format(instr, "vmovq 'qd, 'qm");
+ for (int i = 0; i < 4; i++) {
+ s8d.data_[i].u = s8m.data_[i].u;
+ }
+ } else {
+ // Format(instr, "vorrq 'qd, 'qm");
+ for (int i = 0; i < 4; i++) {
+ s8d.data_[i].u = s8n.data_[i].u | s8m.data_[i].u;
+ }
+ }
+ } else if ((instr->Bits(8, 4) == 12) && (instr->Bit(4) == 0) &&
+ (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) &&
+ (instr->Bit(7) == 0)) {
+ DRegister dm = instr->DmField();
+ int64_t dm_value = get_dregister_bits(dm);
+ int32_t imm4 = instr->Bits(16, 4);
+ int32_t idx;
+ if ((imm4 & 1) != 0) {
+ // Format(instr, "vdupb 'qd, 'dm['imm4_vdup]");
+ int8_t* dm_b = reinterpret_cast<int8_t*>(&dm_value);
+ idx = imm4 >> 1;
+ for (int i = 0; i < 16; i++) {
+ s8d_8[i] = dm_b[idx];
+ }
+ } else if ((imm4 & 2) != 0) {
+ // Format(instr, "vduph 'qd, 'dm['imm4_vdup]");
+ int16_t* dm_h = reinterpret_cast<int16_t*>(&dm_value);
+ idx = imm4 >> 2;
+ for (int i = 0; i < 8; i++) {
+ s8d_16[i] = dm_h[idx];
+ }
+ } else if ((imm4 & 4) != 0) {
+ // Format(instr, "vdupw 'qd, 'dm['imm4_vdup]");
+ int32_t* dm_w = reinterpret_cast<int32_t*>(&dm_value);
+ idx = imm4 >> 3;
+ for (int i = 0; i < 4; i++) {
+ s8d.data_[i].u = dm_w[idx];
+ }
+ } else {
+ UnimplementedInstruction(instr);
+ }
} else {
UnimplementedInstruction(instr);
}
@@ -3031,7 +3081,6 @@
table[i] = 0;
}
-
int64_t dm_value = get_dregister_bits(dm);
int64_t result;
int8_t* dm_bytes = reinterpret_cast<int8_t*>(&dm_value);
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698