Add xxsel
authorTom Musta <tommusta@gmail.com>
Fri, 1 Nov 2013 13:21:21 +0000 (08:21 -0500)
committerAlexander Graf <agraf@suse.de>
Fri, 20 Dec 2013 00:58:07 +0000 (01:58 +0100)
commit551e3ef72e59d3975073e2ea3aaf2f7508323063
treef1564f9fe86f9a1c5306f92f1878d1d409cc2ef7
parentce577d2e48e756f17d4c4a6c6bdc96924a157ca0
Add xxsel

This patch adds the VSX Select (xxsel) instruction.

The xxsel instruction has four VSR operands.  Thus the xC
instruction decoder is added.

The xxsel instruction is massively overloaded in the opcode
table since only bits 26 and 27 are opcode bits.  This
overloading is done in matrix fashion with two macros
(GEN_XXSEL_ROW and GEN_XX_SEL).

V2: (1) eliminated unecessary XXSEL macro  (2) tighter implementation
using tcg_gen_andc_i64.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c