|
From: | Richard Henderson |
Subject: | Re: [PATCH 03/12] target/ppc: Move V(ADD|SUB)CUW to decodetree and use gvec |
Date: | Sat, 24 Sep 2022 14:18:27 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 9/23/22 21:47, Lucas Mateus Castro(alqotel) wrote:
+static void gen_VADDCUW(unsigned vece, TCGv_vec t, TCGv_vec a, TCGv_vec b) +{ + tcg_gen_not_vec(vece, a, a); + tcg_gen_cmp_vec(TCG_COND_LTU, vece, t, a, b); + tcg_gen_and_vec(vece, t, t, tcg_constant_vec_matching(t, vece, 1)); +}
I wondered about negate instead of masking the low bit, but either works. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |