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

Unified Diff: runtime/vm/assembler_arm64.cc

Issue 261783005: Begins work on arm64 floating point instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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_arm64.h ('k') | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64.cc
===================================================================
--- runtime/vm/assembler_arm64.cc (revision 35658)
+++ runtime/vm/assembler_arm64.cc (working copy)
@@ -566,6 +566,15 @@
}
+void Assembler::LoadDImmediate(VRegister vd, double immd, Register pp) {
+ if (!fmovdi(vd, immd)) {
+ int64_t imm = bit_cast<int64_t, double>(immd);
+ LoadImmediate(TMP, imm, pp);
+ fmovdr(vd, TMP);
+ }
+}
+
+
void Assembler::AddImmediate(
Register dest, Register rn, int64_t imm, Register pp) {
ASSERT(rn != TMP2);
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698