forked from OSchip/llvm-project
parent
9a06696a77
commit
2b86e48b3a
|
@ -694,7 +694,7 @@ static int getIDWithAttrMask(uint16_t* instructionID,
|
||||||
* @param orig - The instruction that is not 16-bit
|
* @param orig - The instruction that is not 16-bit
|
||||||
* @param equiv - The instruction that is 16-bit
|
* @param equiv - The instruction that is 16-bit
|
||||||
*/
|
*/
|
||||||
static BOOL is16BitEquvalent(const char* orig, const char* equiv) {
|
static BOOL is16BitEquivalent(const char* orig, const char* equiv) {
|
||||||
off_t i;
|
off_t i;
|
||||||
|
|
||||||
for (i = 0;; i++) {
|
for (i = 0;; i++) {
|
||||||
|
@ -860,7 +860,7 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
|
||||||
specWithOpSizeName =
|
specWithOpSizeName =
|
||||||
x86DisassemblerGetInstrName(instructionIDWithOpsize, miiArg);
|
x86DisassemblerGetInstrName(instructionIDWithOpsize, miiArg);
|
||||||
|
|
||||||
if (is16BitEquvalent(specName, specWithOpSizeName)) {
|
if (is16BitEquivalent(specName, specWithOpSizeName)) {
|
||||||
insn->instructionID = instructionIDWithOpsize;
|
insn->instructionID = instructionIDWithOpsize;
|
||||||
insn->spec = specifierForUID(instructionIDWithOpsize);
|
insn->spec = specifierForUID(instructionIDWithOpsize);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue