mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
[x86] Fix MOV8ao8 et al for 16-bit mode, fix up disassembler to understand
It seems there is no separate instruction class for having AdSize *and* OpSize bits set, which is required in order to disambiguate between all these instructions. So add that to the disassembler. Hm, perhaps we do need an AdSize16 bit after all? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -94,8 +94,11 @@ static inline bool inheritsFrom(InstructionContext child,
|
||||
inheritsFrom(child, IC_64BIT_XD) ||
|
||||
inheritsFrom(child, IC_64BIT_XS));
|
||||
case IC_OPSIZE:
|
||||
return inheritsFrom(child, IC_64BIT_OPSIZE);
|
||||
return (inheritsFrom(child, IC_64BIT_OPSIZE) ||
|
||||
inheritsFrom(child, IC_OPSIZE_ADSIZE));
|
||||
case IC_ADSIZE:
|
||||
return inheritsFrom(child, IC_OPSIZE_ADSIZE);
|
||||
case IC_OPSIZE_ADSIZE:
|
||||
case IC_64BIT_ADSIZE:
|
||||
return false;
|
||||
case IC_XD:
|
||||
|
Reference in New Issue
Block a user