arm64: fix imm value of MOV - issue #1456

This commit is contained in:
Nguyen Anh Quynh 2019-04-16 20:28:53 +08:00
parent 3528f7115e
commit 22c4fc577d

View File

@ -541,7 +541,7 @@ void AArch64_printInst(MCInst *MI, SStream *O, void *Info)
MI->flat_insn->detail->arm64.op_count++;
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].type = ARM64_OP_IMM;
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].imm = RegWidth;
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].imm = SignExtend64(Value, RegWidth);
MI->flat_insn->detail->arm64.op_count++;
}