llvm.org GIT mirror llvm / c45addd
Set displacementSize to 1 for instrucitons with mod==0x1. Fixes PR17310. Modified from patch by James Courtier-Dutton. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200100 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 6 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
13101310 case 0x1:
13111311 insn->eaBase = (EABase)(insn->eaBaseBase + rm);
13121312 insn->eaDisplacement = EA_DISP_8;
1313 insn->displacementSize = 1;
13131314 if (readDisplacement(insn))
13141315 return -1;
13151316 break;
13551356 }
13561357 break;
13571358 case 0x1:
1359 insn->displacementSize = 1;
1360 // FALLTHROUGH
13581361 case 0x2:
13591362 insn->eaDisplacement = (mod == 0x1 ? EA_DISP_8 : EA_DISP_32);
13601363 switch (rm) {