add conversion to signed int
This commit is contained in:
parent
e502650787
commit
17673b675d
1 changed files with 11 additions and 3 deletions
|
@ -120,6 +120,15 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
EmitRoundMathCall(Context, MidpointRounding.ToEven);
|
EmitRoundMathCall(Context, MidpointRounding.ToEven);
|
||||||
|
|
||||||
|
if (Op.RegisterSize == ARegisterSize.SIMD64)
|
||||||
|
{
|
||||||
|
Context.Emit(OpCodes.Conv_I4);
|
||||||
|
}
|
||||||
|
else if (Op.RegisterSize == ARegisterSize.SIMD128)
|
||||||
|
{
|
||||||
|
Context.Emit(OpCodes.Conv_I8);
|
||||||
|
}
|
||||||
|
|
||||||
EmitVectorInsertF(Context, Op.Rd, Index, 0);
|
EmitVectorInsertF(Context, Op.Rd, Index, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -128,7 +137,6 @@ namespace ChocolArm64.Instruction
|
||||||
{
|
{
|
||||||
EmitVectorZeroUpper(Context, Op.Rd);
|
EmitVectorZeroUpper(Context, Op.Rd);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Fcvtps_Gp(AILEmitterCtx Context)
|
public static void Fcvtps_Gp(AILEmitterCtx Context)
|
||||||
|
|
Loading…
Reference in a new issue