tcg: Add generic vector helpers with a scalar operand
commit22fc3527034678489ec554e82fd52f8a7f05418e
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Dec 2017 18:58:36 +0000 (21 10:58 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Feb 2018 15:54:06 +0000 (8 15:54 +0000)
tree64a840926a20ab6a6229bcd6fe1fe36af14aed4d
parentf49b12c6e6a75a5bd109bcbbda072b24e5fb8dfd
tcg: Add generic vector helpers with a scalar operand

Use dup to convert a non-constant scalar to a third vector.

Add addition, multiplication, and logical operations with an immediate.
Add addition, subtraction, multiplication, and logical operations with
a non-constant scalar.  Allow for the front-end to build operations in
which the scalar operand comes first.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/tcg-runtime-gvec.c
accel/tcg/tcg-runtime.h
tcg/tcg-op-gvec.c
tcg/tcg-op-gvec.h