[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 17/22] target/arm: Implement VFP fp16 VSEL
From: |
Richard Henderson |
Subject: |
Re: [PATCH 17/22] target/arm: Implement VFP fp16 VSEL |
Date: |
Tue, 25 Aug 2020 12:19:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/24/20 7:29 AM, Peter Maydell wrote:
> @@ -307,6 +311,10 @@ static bool trans_VSEL(DisasContext *s, arg_VSEL *a)
> tcg_temp_free_i32(tmp);
> break;
> }
> + /* For fp16 the top half is always zeroes */
> + if (sz == 1) {
> + tcg_gen_andi_i32(dest, dest, 0xffff);
> + }
I suppose that'll do. In theory we could avoid this by using the correct
zero-extending loads above, but that's a nasty world, neon_load_foo, and it
doesn't sport 16-bit variants atm.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [PATCH 15/22] target/arm: Implement VFP fp16 VCVT between float and fixed-point, (continued)
- [PATCH 16/22] target/arm: Implement VFP vp16 VCVT-with-specified-rounding-mode, Peter Maydell, 2020/08/24
- [PATCH 18/22] target/arm: Implement VFP fp16 VRINT*, Peter Maydell, 2020/08/24
- [PATCH 19/22] target/arm: Implement new VFP fp16 insn VINS, Peter Maydell, 2020/08/24
- [PATCH 22/22] target/arm: Enable FP16 in '-cpu max', Peter Maydell, 2020/08/24
- [PATCH 17/22] target/arm: Implement VFP fp16 VSEL, Peter Maydell, 2020/08/24
- Re: [PATCH 17/22] target/arm: Implement VFP fp16 VSEL,
Richard Henderson <=
- [PATCH 21/22] target/arm: Implement VFP fp16 VMOV between gp and halfprec registers, Peter Maydell, 2020/08/24
- [PATCH 20/22] target/arm: Implement new VFP fp16 insn VMOVX, Peter Maydell, 2020/08/24