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

Unified Diff: runtime/vm/simulator_arm64.cc

Issue 701233003: Implement bigint intrinsics on arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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/method_recognizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_arm64.cc
===================================================================
--- runtime/vm/simulator_arm64.cc (revision 41606)
+++ runtime/vm/simulator_arm64.cc (working copy)
@@ -2303,6 +2303,14 @@
static_cast<__int128>(rn_val) * static_cast<__int128>(rm_val);
const int64_t alu_out = static_cast<int64_t>(res >> 64);
set_register(instr, rd, alu_out, R31IsZR);
+ } else if ((instr->Bits(29, 3) == 4) && (instr->Bits(21, 3) == 5) &&
+ (instr->Bit(15) == 0)) {
+ // Format(instr, "umaddl 'rd, 'rn, 'rm, 'ra");
+ const uint64_t rn_val = static_cast<uint32_t>(get_wregister(rn, R31IsZR));
+ const uint64_t rm_val = static_cast<uint32_t>(get_wregister(rm, R31IsZR));
+ const uint64_t ra_val = get_register(ra, R31IsZR);
+ const uint64_t alu_out = ra_val + (rn_val * rm_val);
+ set_register(instr, rd, alu_out, R31IsZR);
} else {
UnimplementedInstruction(instr);
}
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698