s390x/tcg: Implement VECTOR GALOIS FIELD MULTIPLY SUM (AND ACCUMULATE)
commit697a45d6952a897ea300f8071a162cbb464fade0
authorDavid Hildenbrand <david@redhat.com>
Thu, 11 Apr 2019 09:54:53 +0000 (11 11:54 +0200)
committerDavid Hildenbrand <david@redhat.com>
Fri, 17 May 2019 08:54:13 +0000 (17 10:54 +0200)
treef1032575137f1b0b27b829b20d4ae1fd31001c97
parent44951e6b0349d8981c226cd8e12505d4f45835d8
s390x/tcg: Implement VECTOR GALOIS FIELD MULTIPLY SUM (AND ACCUMULATE)

A galois field multiplication in field 2 is like binary multiplication,
however instead of doing ordinary binary additions, xor's are performed.
So no carries are considered.

Implement all variants via helpers. s390_vec_sar() and s390_vec_shr()
will be reused later on.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/helper.h
target/s390x/insn-data.def
target/s390x/translate_vx.inc.c
target/s390x/vec_int_helper.c