AInstEmitSimdCvt: Half-precision to single-precision conversion (#235)

This commit is contained in:
Merry 2018-07-12 19:51:02 +01:00 committed by gdkchan
parent cd18ab29df
commit b233ae964f
3 changed files with 80 additions and 4 deletions

View file

@ -45,10 +45,10 @@ namespace ChocolArm64.Instruction
{
if (SizeF == 0)
{
//TODO: This need the half precision floating point type,
//that is not yet supported on .NET. We should probably
//do our own implementation on the meantime.
throw new NotImplementedException();
EmitVectorExtractZx(Context, Op.Rn, Part + Index, 1);
Context.Emit(OpCodes.Conv_U2);
Context.EmitCall(typeof(ASoftFloat), nameof(ASoftFloat.ConvertHalfToSingle));
}
else /* if (SizeF == 1) */
{