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

Unified Diff: runtime/vm/assembler_arm.cc

Issue 647523002: Uses correct mnemonic for vmrs instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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.h ('k') | runtime/vm/constants_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.cc
===================================================================
--- runtime/vm/assembler_arm.cc (revision 41020)
+++ runtime/vm/assembler_arm.cc (working copy)
@@ -1186,16 +1186,19 @@
}
-void Assembler::vmstat(Condition cond) { // VMRS APSR_nzcv, FPSCR
+void Assembler::vmrs(Register rd, Condition cond) {
ASSERT(TargetCPUFeatures::vfp_supported());
ASSERT(cond != kNoCondition);
int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
B27 | B26 | B25 | B23 | B22 | B21 | B20 | B16 |
- (static_cast<int32_t>(PC)*B12) |
+ (static_cast<int32_t>(rd)*B12) |
B11 | B9 | B4;
Emit(encoding);
}
+void Assembler::vmstat(Condition cond) {
+ vmrs(APSR, cond);
+}
static inline int ShiftOfOperandSize(OperandSize size) {
switch (size) {
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/constants_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698