[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT
From: |
Víctor Colombo |
Subject: |
[PATCH 13/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT |
Date: |
Thu, 1 Sep 2022 10:17:50 -0300 |
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/fpu_helper.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index 6f9a1a755e..eb16fb20a9 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -2914,22 +2914,20 @@ uint64_t helper_XSCVSPDPN(uint64_t xb)
#define VSX_CVT_FP_TO_INT(op, nels, stp, ttp, sfld, tfld, sfi, rnan) \
void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \
{ \
- int all_flags = env->fp_status.float_exception_flags, flags; \
ppc_vsr_t t = { }; \
- int i; \
+ int i, flags; \
+ \
+ helper_reset_fpstatus(env); \
\
for (i = 0; i < nels; i++) { \
- env->fp_status.float_exception_flags = 0; \
t.tfld = stp##_to_##ttp##_round_to_zero(xb->sfld, &env->fp_status); \
flags = env->fp_status.float_exception_flags; \
if (unlikely(flags & float_flag_invalid)) { \
t.tfld = float_invalid_cvt(env, flags, t.tfld, rnan, 0, GETPC());\
} \
- all_flags |= flags; \
} \
\
*xt = t; \
- env->fp_status.float_exception_flags = all_flags; \
do_float_check_status(env, sfi, GETPC()); \
}
--
2.25.1
- [PATCH 06/19] target/ppc: Set OV32 when OV is set, (continued)
- [PATCH 06/19] target/ppc: Set OV32 when OV is set, Víctor Colombo, 2022/09/01
- [PATCH 07/19] target/ppc: Zero second doubleword of VSR registers for FPR insns, Víctor Colombo, 2022/09/01
- [PATCH 08/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 09/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP, Víctor Colombo, 2022/09/01
- [PATCH 10/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP, Víctor Colombo, 2022/09/01
- [PATCH 11/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 13/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT,
Víctor Colombo <=
- [PATCH 12/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT2, Víctor Colombo, 2022/09/01
- [PATCH 15/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 16/19] target/ppc: Clear fpstatus flags for xscvqpdp, Víctor Colombo, 2022/09/01
- [PATCH 14/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP_HP, Víctor Colombo, 2022/09/01
- [PATCH 17/19] target/ppc: Clear fpstatus flags for xscvdpsp[n], Víctor Colombo, 2022/09/01
- [PATCH 18/19] target/ppc: Clear fpstatus flags on VSX_CMP, Víctor Colombo, 2022/09/01
- [PATCH 19/19] target/ppc: Clear fpstatus flags on VSX_ROUND, Víctor Colombo, 2022/09/01