OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87f24f5
)
The rules disallowing single-register reglist operands only apply to the POP alias...
author
Owen Anderson
<resistor@mac.com>
Wed, 2 Nov 2011 17:46:18 +0000
(17:46 +0000)
committer
Stephen Hines
<srhines@google.com>
Mon, 14 Nov 2011 17:11:40 +0000
(09:11 -0800)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143553
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
index
8dab153
..
6927d2d
100644
(file)
--- 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)))