Fix testAndBranch sign extend to 64 bit (#1213)

This commit is contained in:
Francesco Tamagni 2018-07-20 01:50:01 -05:00 committed by Nguyen Anh Quynh
parent 76c1c3c4e9
commit f6e0fa42f2

View File

@ -1625,7 +1625,7 @@ static DecodeStatus DecodeTestAndBranch(MCInst *Inst, uint32_t insn,
{
uint32_t Rt = fieldFromInstruction(insn, 0, 5);
uint32_t bit = fieldFromInstruction(insn, 31, 1) << 5;
uint32_t dst = fieldFromInstruction(insn, 5, 14);
uint64_t dst = fieldFromInstruction(insn, 5, 14);
bit |= fieldFromInstruction(insn, 19, 5);