Re: [PATCH 05/11] target/arm: Add read/write_neon_element32

2020-10-29 Thread Peter Maydell
On Wed, 28 Oct 2020 at 20:23, Richard Henderson wrote: > > On 10/27/20 8:26 PM, Richard Henderson wrote: > > @@ -3871,24 +3923,26 @@ static bool trans_VTRN(DisasContext *s, arg_2misc > > *a) > > return true; > > } > > > > -if (a->size == 2) { > > +tmp = tcg_temp_new_i32(); >

Re: [PATCH 05/11] target/arm: Add read/write_neon_element32

2020-10-28 Thread Richard Henderson
On 10/27/20 8:26 PM, Richard Henderson wrote: > @@ -3871,24 +3923,26 @@ static bool trans_VTRN(DisasContext *s, arg_2misc *a) > return true; > } > > -if (a->size == 2) { > +tmp = tcg_temp_new_i32(); > +tmp2 = tcg_temp_new_i32(); > +if (a->size == MO_32) { ... >

[PATCH 05/11] target/arm: Add read/write_neon_element32

2020-10-27 Thread Richard Henderson
Model these off the aa64 read/write_vec_element functions. Use it within translate-neon.c.inc. The new functions do not allocate or free temps, so this rearranges the calling code a bit. Signed-off-by: Richard Henderson --- target/arm/translate.c | 26 target/arm/translate-neon.c