diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 17:46:45 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 17:46:45 +0000 |
| commit | dfa5da942162f3e44b08d27e4df9e7d94f17e13d (patch) | |
| tree | dc6842724fef60361d0c6fe7ab81daba50aee999 /lib/Target/ARM/ARMAddressingModes.h | |
| parent | 2830d1937d97bce9d0cb2538d8582638a45fa5b7 (diff) | |
| download | external_llvm-dfa5da942162f3e44b08d27e4df9e7d94f17e13d.zip external_llvm-dfa5da942162f3e44b08d27e4df9e7d94f17e13d.tar.gz external_llvm-dfa5da942162f3e44b08d27e4df9e7d94f17e13d.tar.bz2 | |
Remove the writeback flag from ARM's address mode 4. Now that we have separate
instructions for ld/st with writeback, the flag is completely redundant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAddressingModes.h')
| -rw-r--r-- | lib/Target/ARM/ARMAddressingModes.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/Target/ARM/ARMAddressingModes.h b/lib/Target/ARM/ARMAddressingModes.h index 9e086ca..5be2fb2 100644 --- a/lib/Target/ARM/ARMAddressingModes.h +++ b/lib/Target/ARM/ARMAddressingModes.h @@ -463,20 +463,13 @@ namespace ARM_AM { // IB - Increment before // DA - Decrement after // DB - Decrement before - // - // If the 4th bit (writeback)is set, then the base register is updated after - // the memory transfer. static inline AMSubMode getAM4SubMode(unsigned Mode) { return (AMSubMode)(Mode & 0x7); } - static inline unsigned getAM4ModeImm(AMSubMode SubMode, bool WB = false) { - return (int)SubMode | ((int)WB << 3); - } - - static inline bool getAM4WBFlag(unsigned Mode) { - return (Mode >> 3) & 1; + static inline unsigned getAM4ModeImm(AMSubMode SubMode) { + return (int)SubMode; } //===--------------------------------------------------------------------===// |
