diff options
author | LIU Zhiwei | 2020-07-01 17:25:13 +0200 |
---|---|---|
committer | Alistair Francis | 2020-07-02 18:19:33 +0200 |
commit | b7aee4819206cbb7adfdb624d4f2fa9918c25d43 (patch) | |
tree | 72222e29ba1bb837d524a1a0dcc8aa26a95ae2bf /target/riscv/insn_trans | |
parent | target/riscv: vector single-width saturating add and subtract (diff) | |
download | qemu-b7aee4819206cbb7adfdb624d4f2fa9918c25d43.tar.gz qemu-b7aee4819206cbb7adfdb624d4f2fa9918c25d43.tar.xz qemu-b7aee4819206cbb7adfdb624d4f2fa9918c25d43.zip |
target/riscv: vector single-width averaging add and subtract
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200701152549.1218-26-zhiwei_liu@c-sky.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/insn_trans')
-rw-r--r-- | target/riscv/insn_trans/trans_rvv.inc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/riscv/insn_trans/trans_rvv.inc.c b/target/riscv/insn_trans/trans_rvv.inc.c index a2ab14ade0..354a802518 100644 --- a/target/riscv/insn_trans/trans_rvv.inc.c +++ b/target/riscv/insn_trans/trans_rvv.inc.c @@ -1747,3 +1747,10 @@ GEN_OPIVX_TRANS(vssubu_vx, opivx_check) GEN_OPIVX_TRANS(vssub_vx, opivx_check) GEN_OPIVI_TRANS(vsaddu_vi, 1, vsaddu_vx, opivx_check) GEN_OPIVI_TRANS(vsadd_vi, 0, vsadd_vx, opivx_check) + +/* Vector Single-Width Averaging Add and Subtract */ +GEN_OPIVV_TRANS(vaadd_vv, opivv_check) +GEN_OPIVV_TRANS(vasub_vv, opivv_check) +GEN_OPIVX_TRANS(vaadd_vx, opivx_check) +GEN_OPIVX_TRANS(vasub_vx, opivx_check) +GEN_OPIVI_TRANS(vaadd_vi, 0, vaadd_vx, opivx_check) |