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

Unified Diff: src/IceRegistersARM32.h

Issue 1532233002: Add VPUSH/VPOP instructions to the ARM32 integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues raised in last patch. Created 5 years 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/IceInstARM32.cpp ('k') | tests_lit/assembler/arm32/vpush.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegistersARM32.h
diff --git a/src/IceRegistersARM32.h b/src/IceRegistersARM32.h
index 5bd047f32c667cd50d8ebd386c2f6bb548b7b9a9..d601e734b19e334ea40a571d756a8a3c3ce3cbdb 100644
--- a/src/IceRegistersARM32.h
+++ b/src/IceRegistersARM32.h
@@ -104,6 +104,14 @@ public:
return Reg_I64PAIR_First <= RegNum && RegNum <= Reg_I64PAIR_Last;
}
+ static inline bool isEncodedSReg(int32_t RegNum) {
+ return Reg_SREG_First <= RegNum && RegNum <= Reg_SREG_Last;
+ }
+
+ static inline SizeT getNumSRegs() {
+ return Reg_SREG_Last + 1 - Reg_SREG_First;
+ }
+
static inline SRegister getEncodedSReg(int32_t RegNum) {
assert(Reg_SREG_First <= RegNum);
assert(RegNum <= Reg_SREG_Last);
« no previous file with comments | « src/IceInstARM32.cpp ('k') | tests_lit/assembler/arm32/vpush.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698