[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 04/67] target/arm: Zero-extend writeback for fp16 FCVTZS (
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 04/67] target/arm: Zero-extend writeback for fp16 FCVTZS (scalar, integer) |
Date: |
Tue, 28 May 2024 13:48:05 +0100 |
On Sat, 25 May 2024 at 00:23, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Fixes RISU mismatch for "fcvtzs h31, h0, #14".
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/arm/tcg/translate-a64.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c
> index 4126aaa27e..d97acdbaf9 100644
> --- a/target/arm/tcg/translate-a64.c
> +++ b/target/arm/tcg/translate-a64.c
> @@ -8707,6 +8707,9 @@ static void handle_simd_shift_fpint_conv(DisasContext
> *s, bool is_scalar,
> read_vec_element_i32(s, tcg_op, rn, pass, size);
> fn(tcg_op, tcg_op, tcg_shift, tcg_fpstatus);
> if (is_scalar) {
> + if (size == MO_16 && !is_u) {
> + tcg_gen_ext16u_i32(tcg_op, tcg_op);
> + }
> write_fp_sreg(s, rd, tcg_op);
> } else {
> write_vec_element_i32(s, tcg_op, rd, pass, size);
> --
> 2.34.1
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v2 00/67] target/arm: Convert a64 advsimd to decodetree (part 1), Richard Henderson, 2024/05/24
- [PATCH v2 01/67] target/arm: Add neoverse-n1 to qemu-arm (DO NOT MERGE), Richard Henderson, 2024/05/24
- [PATCH v2 02/67] target/arm: Use PLD, PLDW, PLI not NOP for t32, Richard Henderson, 2024/05/24
- [PATCH v2 03/67] target/arm: Reject incorrect operands to PLD, PLDW, PLI, Richard Henderson, 2024/05/24
- [PATCH v2 04/67] target/arm: Zero-extend writeback for fp16 FCVTZS (scalar, integer), Richard Henderson, 2024/05/24
- Re: [PATCH v2 04/67] target/arm: Zero-extend writeback for fp16 FCVTZS (scalar, integer),
Peter Maydell <=
- [PATCH v2 05/67] target/arm: Fix decode of FMOV (hp) vs MOVI, Richard Henderson, 2024/05/24
- [PATCH v2 06/67] target/arm: Verify sz=0 for Advanced SIMD scalar pairwise (fp16), Richard Henderson, 2024/05/24
- [PATCH v2 09/67] target/arm: Convert Cryptographic AES to decodetree, Richard Henderson, 2024/05/24
- [PATCH v2 08/67] target/arm: Split out gengvec64.c, Richard Henderson, 2024/05/24
- [PATCH v2 10/67] target/arm: Convert Cryptographic 3-register SHA to decodetree, Richard Henderson, 2024/05/24
- [PATCH v2 07/67] target/arm: Split out gengvec.c, Richard Henderson, 2024/05/24
- [PATCH v2 11/67] target/arm: Convert Cryptographic 2-register SHA to decodetree, Richard Henderson, 2024/05/24
- [PATCH v2 13/67] target/arm: Convert Cryptographic 2-register SHA512 to decodetree, Richard Henderson, 2024/05/24