Update AInstEmitSimdArithmetic.cs
This commit is contained in:
parent
c99b2884e4
commit
c6d0dc1334
1 changed files with 5 additions and 2 deletions
|
@ -99,11 +99,14 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
int Bytes = Context.CurrOp.GetBitsCount() >> 3;
|
int Bytes = Context.CurrOp.GetBitsCount() >> 3;
|
||||||
|
|
||||||
for (int Index = 0; Index < (Bytes >> Op.Size); Index++)
|
int Elems = Bytes >> Op.Size;
|
||||||
|
int ESize = 8 << Op.Size;
|
||||||
|
|
||||||
|
for (int Index = 0; Index < Elems; Index++)
|
||||||
{
|
{
|
||||||
EmitVectorExtractZx(Context, Op.Rn, Index, Op.Size);
|
EmitVectorExtractZx(Context, Op.Rn, Index, Op.Size);
|
||||||
|
|
||||||
Context.EmitLdc_I4(8 << Op.Size);
|
Context.EmitLdc_I4(ESize);
|
||||||
|
|
||||||
Emit();
|
Emit();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue