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

Unified Diff: runtime/vm/assembler_arm64.h

Issue 285403004: Adds intrinsics for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64.h
===================================================================
--- runtime/vm/assembler_arm64.h (revision 36300)
+++ runtime/vm/assembler_arm64.h (working copy)
@@ -473,6 +473,9 @@
void and_(Register rd, Register rn, Operand o) {
EmitLogicalShiftOp(AND, rd, rn, o, kDoubleWord);
}
+ void andw_(Register rd, Register rn, Operand o) {
+ EmitLogicalShiftOp(AND, rd, rn, o, kWord);
+ }
void bic(Register rd, Register rn, Operand o) {
EmitLogicalShiftOp(BIC, rd, rn, o, kDoubleWord);
}
@@ -485,6 +488,9 @@
void eor(Register rd, Register rn, Operand o) {
EmitLogicalShiftOp(EOR, rd, rn, o, kDoubleWord);
}
+ void eorw(Register rd, Register rn, Operand o) {
+ EmitLogicalShiftOp(EOR, rd, rn, o, kWord);
+ }
void eon(Register rd, Register rn, Operand o) {
EmitLogicalShiftOp(EON, rd, rn, o, kDoubleWord);
}
@@ -780,9 +786,16 @@
void Lsl(Register rd, Register rn, int shift) {
add(rd, ZR, Operand(rn, LSL, shift));
}
+ void Lslw(Register rd, Register rn, int shift) {
+ addw(rd, ZR, Operand(rn, LSL, shift));
+ }
void Lsr(Register rd, Register rn, int shift) {
add(rd, ZR, Operand(rn, LSR, shift));
}
+ void Lsrw(Register rd, Register rn, int shift) {
+ ASSERT((shift >= 0) && (shift < 32));
+ addw(rd, ZR, Operand(rn, LSR, shift));
+ }
void Asr(Register rd, Register rn, int shift) {
add(rd, ZR, Operand(rn, ASR, shift));
}
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698