[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/19] target/ppc: Clear fpstatus flags for xscvdpsp[n]
From: |
Víctor Colombo |
Subject: |
[PATCH 17/19] target/ppc: Clear fpstatus flags for xscvdpsp[n] |
Date: |
Thu, 1 Sep 2022 10:17:54 -0300 |
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/fpu_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index 51142bd7d5..5f7f52ab5b 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -2719,6 +2719,8 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt,
ppc_vsr_t *xb) \
ppc_vsr_t t = { }; \
int i; \
\
+ helper_reset_fpstatus(env); \
+ \
for (i = 0; i < nels; i++) { \
t.VsrW(2 * i) = stp##_to_##ttp(xb->VsrD(i), &env->fp_status); \
if (unlikely(stp##_is_signaling_nan(xb->VsrD(i), \
@@ -2865,6 +2867,7 @@ uint64_t helper_xscvdpspn(CPUPPCState *env, uint64_t xb)
{
uint64_t result, sign, exp, frac;
+ helper_reset_fpstatus(env);
float_status tstat = env->fp_status;
set_float_exception_flags(0, &tstat);
--
2.25.1
- Re: [PATCH 08/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP_VECTOR, (continued)
- [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, 2022/09/01
- [PATCH 12/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT2, 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 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 17/19] target/ppc: Clear fpstatus flags for xscvdpsp[n],
Víctor Colombo <=
- [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