qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH 2/2] target/ppc: Rely on do_float_check_status for VSX_MADD i


From: Víctor Colombo
Subject: [RFC PATCH 2/2] target/ppc: Rely on do_float_check_status for VSX_MADD invalid excepts
Date: Thu, 12 May 2022 16:42:50 -0300

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 --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);                          \
         }                                                                     \
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]