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

Unified Diff: src/IceAssemblerARM32.cpp

Issue 1415943009: Add BIC(register) and BIC(immediate) to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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 | « src/IceAssemblerARM32.h ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssemblerARM32.cpp
diff --git a/src/IceAssemblerARM32.cpp b/src/IceAssemblerARM32.cpp
index b6a4fc8d5da9208b10a66ce9fef20295ca47292c..99be7954e5d505e41333ff953a268729caccf9a8 100644
--- a/src/IceAssemblerARM32.cpp
+++ b/src/IceAssemblerARM32.cpp
@@ -563,6 +563,24 @@ void AssemblerARM32::bkpt(uint16_t Imm16) {
emitInst(Encoding);
}
+void AssemblerARM32::bic(const Operand *OpRd, const Operand *OpRn,
+ const Operand *OpSrc1, bool SetFlags,
+ CondARM32::Cond Cond) {
+ // BIC (register) - ARM section A8.8.22, encoding A1:
+ // bic{s}<c> <Rd>, <Rn>, <Rm>{, <shift>}
+ //
+ // cccc0001110snnnnddddiiiiitt0mmmm where cccc=Cond, dddd=Rd, nnnn=Rn,
+ // mmmm=Rm, iiiii=Shift, tt=ShiftKind, and s=SetFlags.
+ //
+ // BIC (immediate) - ARM section A8.8.21, encoding A1:
+ // bic{s}<c> <Rd>, <Rn>, #<RotatedImm8>
+ //
+ // cccc0011110snnnnddddiiiiiiiiiiii where cccc=Cond, dddd=Rn, nnnn=Rn,
+ // s=SetFlags, and iiiiiiiiiiii=Src1Value defining RotatedImm8.
+ IValueT Opcode = B3 | B2 | B1; // i.e. 1110
+ emitType01(Opcode, OpRd, OpRn, OpSrc1, SetFlags, Cond);
+}
+
void AssemblerARM32::bx(RegARM32::GPRRegister Rm, CondARM32::Cond Cond) {
// BX - ARM section A8.8.27, encoding A1:
// bx<c> <Rm>
« no previous file with comments | « src/IceAssemblerARM32.h ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698