diff mbox series

[RFC,2/2] target/ppc: Rely on do_float_check_status for VSX_MADD invalid excepts

Message ID 20220512194250.138244-3-victor.colombo@eldorado.org.br
State New
Headers show
Series target/ppc: Propose rework in fp exception handling | expand

Commit Message

Víctor Colombo May 12, 2022, 7:42 p.m. UTC
Make necessary changes for Multiply-Add instructions to use the
proposed reworked exceptions handling in do_float_check_status.

This should allow for cleaner code, not requiring the helper to check
multiple exceptions in its body.

Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
 target/ppc/fpu_helper.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index 988ddba282..a73a955b63 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -2226,11 +2226,6 @@  void helper_##op(CPUPPCState *env, ppc_vsr_t *xt,                             \
         t.fld = tp##_muladd(s1->fld, s3->fld, s2->fld, maddflgs, &tstat);     \
         env->fp_status.float_exception_flags |= tstat.float_exception_flags;  \
                                                                               \
-        if (unlikely(tstat.float_exception_flags & float_flag_invalid)) {     \
-            float_invalid_op_madd(env, tstat.float_exception_flags,           \
-                                  sfifprf, GETPC());                          \
-        }                                                                     \
-                                                                              \
         if (sfifprf) {                                                        \
             helper_compute_fprf_float64(env, t.fld);                          \
         }                                                                     \