mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Fixed disassembler for vstm/vldm ARM VFP instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1224,8 +1224,8 @@ static DecodeStatus DecodeSPRRegListOperand(MCInst &Inst, unsigned Val,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
unsigned Vd = fieldFromInstruction32(Val, 8, 4);
|
||||
unsigned regs = Val & 0xFF;
|
||||
unsigned Vd = fieldFromInstruction32(Val, 8, 5);
|
||||
unsigned regs = fieldFromInstruction32(Val, 0, 8);
|
||||
|
||||
if (!Check(S, DecodeSPRRegisterClass(Inst, Vd, Address, Decoder)))
|
||||
return MCDisassembler::Fail;
|
||||
@ -1241,8 +1241,10 @@ static DecodeStatus DecodeDPRRegListOperand(MCInst &Inst, unsigned Val,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
unsigned Vd = fieldFromInstruction32(Val, 8, 4);
|
||||
unsigned regs = (Val & 0xFF) / 2;
|
||||
unsigned Vd = fieldFromInstruction32(Val, 8, 5);
|
||||
unsigned regs = fieldFromInstruction32(Val, 0, 8);
|
||||
|
||||
regs = regs >> 1;
|
||||
|
||||
if (!Check(S, DecodeDPRRegisterClass(Inst, Vd, Address, Decoder)))
|
||||
return MCDisassembler::Fail;
|
||||
|
Reference in New Issue
Block a user