Re: [PATCH 06/12] target/ppc: Move VAVG[SU][BHW] to decodetree and use gvec

2022-09-24 Thread Richard Henderson
On 9/23/22 21:47, Lucas Mateus Castro(alqotel) wrote: +TCGv_vec one = tcg_temp_new_vec_matching(t); +tcg_gen_dupi_vec(vece, one, 1); +tcg_gen_or_vec(vece, tmp, a, b); +tcg_gen_and_vec(vece, tmp, tmp, one); tcg_constant_vec_matching. With that, Reviewed-by: Richard Henderson

[PATCH 06/12] target/ppc: Move VAVG[SU][BHW] to decodetree and use gvec

2022-09-23 Thread Lucas Mateus Castro(alqotel)
From: "Lucas Mateus Castro (alqotel)" Moved the instructions VAVGUB, VAVGUH, VAVGUW, VAVGSB, VAVGSH, VAVGSW, to decodetree and use gvec with them. For these one the right shift had to be made before the sum as to avoid an overflow, so add 1 at the end if any of the entries had 1 in its LSB as to