Fix corner cases of ADCS and SBFM
This commit is contained in:
parent
f6dc86c6a0
commit
708761963e
3 changed files with 26 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue