mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Fix VEX decoding in i386 mode. Fixes PR11008.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -391,7 +391,7 @@ static int readPrefixes(struct InternalInstruction* insn) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (insn->mode == MODE_64BIT || byte1 & 0x8) {
|
||||
if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) {
|
||||
insn->vexSize = 3;
|
||||
insn->necessaryPrefixLocation = insn->readerCursor - 1;
|
||||
}
|
||||
@@ -433,7 +433,7 @@ static int readPrefixes(struct InternalInstruction* insn) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (insn->mode == MODE_64BIT || byte1 & 0x8) {
|
||||
if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) {
|
||||
insn->vexSize = 2;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user