diff options
author | Owen Anderson <resistor@mac.com> | 2011-11-02 17:46:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-11-02 17:46:18 +0000 |
commit | 244006db5c4d48878dc5fdc86976acdaff96cfaa (patch) | |
tree | 07b88e4eae4d3add2585fafc7a05e52889529d55 /lib/Target | |
parent | e31b42a6f5598691498808673648211916bf4d0f (diff) | |
download | llvm-244006db5c4d48878dc5fdc86976acdaff96cfaa.tar.gz llvm-244006db5c4d48878dc5fdc86976acdaff96cfaa.tar.bz2 llvm-244006db5c4d48878dc5fdc86976acdaff96cfaa.tar.xz |
The rules disallowing single-register reglist operands only apply to the POP alias, not to LDM/STM instructions. Revert r143552.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/Disassembler/ARMDisassembler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp index 8dab153132..6927d2d053 100644 --- a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp +++ b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp @@ -1111,11 +1111,7 @@ static DecodeStatus DecodeRegListOperand(llvm::MCInst &Inst, unsigned Val, } // Empty register lists are not allowed. - uint32_t popcnt = CountPopulation_32(Val); - if (popcnt == 0) return MCDisassembler::Fail; - // and one-register lists are unpredictable. - else if (popcnt == 1) Check(S, MCDisassembler::SoftFail); - + if (CountPopulation_32(Val) == 0) return MCDisassembler::Fail; for (unsigned i = 0; i < 16; ++i) { if (Val & (1 << i)) { if (!Check(S, DecodeGPRRegisterClass(Inst, i, Address, Decoder))) |