[llvm-commits] [llvm] r143553 - /llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
Owen Anderson
resistor at mac.com
Wed Nov 2 10:46:19 PDT 2011
Author: resistor
Date: Wed Nov 2 12:46:18 2011
New Revision: 143553
URL: http://llvm.org/viewvc/llvm-project?rev=143553&view=rev
Log:
The rules disallowing single-register reglist operands only apply to the POP alias, not to LDM/STM instructions. Revert r143552.
Modified:
llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
Modified: llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp?rev=143553&r1=143552&r2=143553&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp Wed Nov 2 12:46:18 2011
@@ -1111,11 +1111,7 @@
}
// 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)))
More information about the llvm-commits
mailing list