target/ppc: rework vmul{e,o}{s,u}{b,h,w} instructions to use Vsr* macros
commit4fbc89edc192931364d183dc4051f54dd1f58cf3
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 30 Jan 2019 20:36:33 +0000 (30 20:36 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 4 Feb 2019 07:44:19 +0000 (4 18:44 +1100)
tree3a6bf405b142a74703f5e225da6a0043341fa121
parentd81c20404e2254e2f56d649c978c7fd6b28c3394
target/ppc: rework vmul{e,o}{s,u}{b,h,w} instructions to use Vsr* macros

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 <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/int_helper.c