diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-12-17 19:35:46 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-01-28 07:03:34 -0800 |
commit | dd0a0fcdd8848c2a18970c44a62bd8f394c2b495 (patch) | |
tree | 5851b9d1238e4aa68b41982439fdd34e99215d75 /tcg/tcg-op-vec.c | |
parent | 8afaf0506606f8003ef696df849c5a98637a7a83 (diff) | |
download | qemu-dd0a0fcdd8848c2a18970c44a62bd8f394c2b495.zip qemu-dd0a0fcdd8848c2a18970c44a62bd8f394c2b495.tar.gz qemu-dd0a0fcdd8848c2a18970c44a62bd8f394c2b495.tar.bz2 |
tcg: Add opcodes for vector minmax arithmetic
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-op-vec.c')
-rw-r--r-- | tcg/tcg-op-vec.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index 675aa09..36f3502 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -433,3 +433,23 @@ void tcg_gen_ussub_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) { do_op3(vece, r, a, b, INDEX_op_ussub_vec); } + +void tcg_gen_smin_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) +{ + do_op3(vece, r, a, b, INDEX_op_smin_vec); +} + +void tcg_gen_umin_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) +{ + do_op3(vece, r, a, b, INDEX_op_umin_vec); +} + +void tcg_gen_smax_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) +{ + do_op3(vece, r, a, b, INDEX_op_smax_vec); +} + +void tcg_gen_umax_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) +{ + do_op3(vece, r, a, b, INDEX_op_umax_vec); +} |