Fix UBSan bootstrap: replace shift of negative value with multiplication.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alexey Samsonov 2014-12-23 04:15:53 +00:00
parent acd25d2481
commit 2f6ad0c00f

View File

@ -1614,7 +1614,7 @@ static DecodeStatus DecodeSimm9SP(MCInst &Inst, unsigned Insn,
case 511: DecodedValue = -257; break;
default: DecodedValue = SignExtend32<9>(Insn); break;
}
Inst.addOperand(MCOperand::CreateImm(DecodedValue << 2));
Inst.addOperand(MCOperand::CreateImm(DecodedValue * 4));
return MCDisassembler::Success;
}