[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT_VECT
From: |
Víctor Colombo |
Subject: |
[PATCH 11/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT_VECTOR |
Date: |
Thu, 1 Sep 2022 10:17:48 -0300 |
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/fpu_helper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index 8a20413a78..c6dc14d653 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -3024,6 +3024,8 @@ void helper_##op(CPUPPCState *env, uint32_t opcode,
\
ppc_vsr_t t = { }; \
int flags; \
\
+ helper_reset_fpstatus(env); \
+ \
t.tfld = stp##_to_##ttp##_round_to_zero(xb->sfld, &env->fp_status); \
flags = get_float_exception_flags(&env->fp_status); \
if (flags & float_flag_invalid) { \
@@ -3036,7 +3038,6 @@ void helper_##op(CPUPPCState *env, uint32_t opcode,
\
VSX_CVT_FP_TO_INT_VECTOR(xscvqpsdz, float128, int64, f128, VsrD(0), \
0x8000000000000000ULL)
-
VSX_CVT_FP_TO_INT_VECTOR(xscvqpswz, float128, int32, f128, VsrD(0), \
0xffffffff80000000ULL)
VSX_CVT_FP_TO_INT_VECTOR(xscvqpudz, float128, uint64, f128, VsrD(0), 0x0ULL)
--
2.25.1
- Re: [PATCH 04/19] target/ppc: Set result to QNaN for DENBCD when VXCVI occurs, (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 <=
- [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 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