mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
The ARM instructions that have an unpredictable behavior when the pc register operand is given now fail with soft fail. Modified the regression tests to reflect this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -869,8 +869,14 @@ static DecodeStatus DecodeGPRRegisterClass(llvm::MCInst &Inst, unsigned RegNo,
|
||||
static DecodeStatus
|
||||
DecodeGPRnopcRegisterClass(llvm::MCInst &Inst, unsigned RegNo,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
if (RegNo == 15) return MCDisassembler::Fail;
|
||||
return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder);
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
if (RegNo == 15)
|
||||
S = MCDisassembler::SoftFail;
|
||||
|
||||
Check(S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder));
|
||||
|
||||
return S;
|
||||
}
|
||||
|
||||
static DecodeStatus DecodetGPRRegisterClass(llvm::MCInst &Inst, unsigned RegNo,
|
||||
|
Reference in New Issue
Block a user