mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-17 09:12:42 +00:00
The rules disallowing single-register reglist operands only apply to the POP alias, not to LDM/STM instructions. Revert r143552.
llvm-svn: 143553
This commit is contained in:
parent
9b966e47e2
commit
66d22d36d2
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user