aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-12-21 20:05:58 -0300
committerGitHub <noreply@github.com>2022-12-21 23:05:58 +0000
commit219f63ff4ebb739f349ca3ddd6c11e5068bcf0f1 (patch)
treedfcc490fefdb6f3249cdb6bb4e41d382bf743eee /ARMeilleure/Instructions
parent1cca3e99ab04e56aa4b30f3fa83f240f8d0fd29d (diff)
Fix CPU FCVTN instruction implementation (slow path) (#4159)
* Fix CPU FCVTN instruction implementation (slow path) * PPTC version bump
Diffstat (limited to 'ARMeilleure/Instructions')
-rw-r--r--ARMeilleure/Instructions/InstEmitSimdCvt.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ARMeilleure/Instructions/InstEmitSimdCvt.cs b/ARMeilleure/Instructions/InstEmitSimdCvt.cs
index 9329f2b7..7f61cad4 100644
--- a/ARMeilleure/Instructions/InstEmitSimdCvt.cs
+++ b/ARMeilleure/Instructions/InstEmitSimdCvt.cs
@@ -381,7 +381,7 @@ namespace ARMeilleure.Instructions
for (int index = 0; index < elems; index++)
{
- Operand ne = context.VectorExtract(type, GetVec(op.Rn), 0);
+ Operand ne = context.VectorExtract(type, GetVec(op.Rn), index);
if (sizeF == 0)
{
@@ -389,8 +389,6 @@ namespace ARMeilleure.Instructions
Operand e = context.Call(typeof(SoftFloat32_16).GetMethod(nameof(SoftFloat32_16.FPConvert)), ne);
context.LoadFromContext();
- e = context.ZeroExtend16(OperandType.I64, e);
-
res = EmitVectorInsert(context, res, e, part + index, 1);
}
else /* if (sizeF == 1) */