Fix corner cases of ADCS and SBFM

This commit is contained in:
gdkchan 2018-02-26 15:56:34 -03:00
parent f6dc86c6a0
commit 708761963e
3 changed files with 26 additions and 10 deletions

View file

@ -54,15 +54,6 @@ namespace ChocolArm64.Instruction
{
EmitSbfmCast(Context, OpCodes.Conv_I4);
}
else if (Op.Shift == 0)
{
Context.EmitLdintzr(Op.Rn);
Context.EmitLsl(BitsCount - 1 - Op.Pos);
Context.EmitAsr(BitsCount - 1);
Context.EmitStintzr(Op.Rd);
}
else
{
EmitBfmLoadRn(Context);