mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Tighten operand checking of register-shifted-register operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -683,8 +683,8 @@ static bool DecodeSORegRegOperand(llvm::MCInst &Inst, unsigned Val,
|
||||
unsigned Rs = fieldFromInstruction32(Val, 8, 4);
|
||||
|
||||
// Register-register
|
||||
DecodeGPRRegisterClass(Inst, Rm, Address, Decoder);
|
||||
DecodeGPRRegisterClass(Inst, Rs, Address, Decoder);
|
||||
if (!DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder)) return false;
|
||||
if (!DecodeGPRnopcRegisterClass(Inst, Rs, Address, Decoder)) return false;
|
||||
|
||||
ARM_AM::ShiftOpc Shift = ARM_AM::lsl;
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user