[llvm-commits] [llvm] r140412 - /llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
Owen Anderson
resistor at mac.com
Fri Sep 23 14:00:32 PDT 2011
Author: resistor
Date: Fri Sep 23 16:00:32 2011
New Revision: 140412
URL: http://llvm.org/viewvc/llvm-project?rev=140412&view=rev
Log:
Thumb2 register-shifted-register loads cannot target the PC or the SP.
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=140412&r1=140411&r2=140412&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp Fri Sep 23 16:00:32 2011
@@ -2660,7 +2660,7 @@
break;
default: {
unsigned Rt = fieldFromInstruction32(Insn, 12, 4);
- if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder)))
+ if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder)))
return MCDisassembler::Fail;
}
}
More information about the llvm-commits
mailing list