From 016262514d46cd51f1f2298bc7583ef44504a90d Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Sun, 16 Jul 2023 21:39:08 +0200 Subject: [PATCH] cpu: Hotfix missing ToNearest rounding mode cases --- src/ARMeilleure/Instructions/SoftFloat.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ARMeilleure/Instructions/SoftFloat.cs b/src/ARMeilleure/Instructions/SoftFloat.cs index 05975d04..a67349e6 100644 --- a/src/ARMeilleure/Instructions/SoftFloat.cs +++ b/src/ARMeilleure/Instructions/SoftFloat.cs @@ -1448,6 +1448,7 @@ namespace ARMeilleure.Instructions { var overflowToInf = fpcr.GetRoundingMode() switch { + FPRoundingMode.ToNearest => true, FPRoundingMode.TowardsPlusInfinity => !sign, FPRoundingMode.TowardsMinusInfinity => sign, FPRoundingMode.TowardsZero => false, @@ -2879,6 +2880,7 @@ namespace ARMeilleure.Instructions { var overflowToInf = fpcr.GetRoundingMode() switch { + FPRoundingMode.ToNearest => true, FPRoundingMode.TowardsPlusInfinity => !sign, FPRoundingMode.TowardsMinusInfinity => sign, FPRoundingMode.TowardsZero => false,