Re: [Qemu-devel] [PATCH 3/6] target/ppc: rework vmul{e, o}{s, u}{b, h, w} instructions to use Vsr* macros

2018-12-28 Thread Mark Cave-Ayland
On 25/12/2018 20:11, Richard Henderson wrote: > On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: >> -#define VMUL_DO(name, mul_element, prod_element, cast, evenp) \ >> +#define VMUL_DO_EVN(name, mul_element, mul_access, prod_access, cast) \ >> void helper_v##name(ppc_avr_t *r,

Re: [Qemu-devel] [PATCH 3/6] target/ppc: rework vmul{e, o}{s, u}{b, h, w} instructions to use Vsr* macros

2018-12-25 Thread Richard Henderson
On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: > -#define VMUL_DO(name, mul_element, prod_element, cast, evenp) \ > +#define VMUL_DO_EVN(name, mul_element, mul_access, prod_access, cast) \ > void helper_v##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ > {

[Qemu-devel] [PATCH 3/6] target/ppc: rework vmul{e, o}{s, u}{b, h, w} instructions to use Vsr* macros

2018-12-23 Thread Mark Cave-Ayland
The current implementations make use of the endian-specific macros HI_IDX and LO_IDX directly to calculate array offsets. Rework the implementation to use the Vsr* macros so that these per-endian references can be removed. Signed-off-by: Mark Cave-Ayland --- target/ppc/int_helper.c | 48