mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Fix #13138, a bug around ARM instruction DSB encoding and decoding issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3494,19 +3494,8 @@ static DecodeStatus DecodeThumbBLTargetOperand(MCInst &Inst, unsigned Val,
|
||||
|
||||
static DecodeStatus DecodeMemBarrierOption(MCInst &Inst, unsigned Val,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
switch (Val) {
|
||||
default:
|
||||
if (Val & ~0xf)
|
||||
return MCDisassembler::Fail;
|
||||
case 0xF: // SY
|
||||
case 0xE: // ST
|
||||
case 0xB: // ISH
|
||||
case 0xA: // ISHST
|
||||
case 0x7: // NSH
|
||||
case 0x6: // NSHST
|
||||
case 0x3: // OSH
|
||||
case 0x2: // OSHST
|
||||
break;
|
||||
}
|
||||
|
||||
Inst.addOperand(MCOperand::CreateImm(Val));
|
||||
return MCDisassembler::Success;
|
||||
|
Reference in New Issue
Block a user