summaryrefslogtreecommitdiffstats
path: root/target/riscv
diff options
context:
space:
mode:
authorFrank Chang2022-01-18 02:45:10 +0100
committerAlistair Francis2022-01-21 06:52:56 +0100
commit193fb5c9bd1fbf8a0b78c75f2056b0d7d9fc0ffe (patch)
treebac6adb9cb66e10a670e311b386ca9bdb280fd0b /target/riscv
parenttarget/riscv: rvv-1.0: Add Zve64f support for scalar fp insns (diff)
downloadqemu-193fb5c9bd1fbf8a0b78c75f2056b0d7d9fc0ffe.tar.gz
qemu-193fb5c9bd1fbf8a0b78c75f2056b0d7d9fc0ffe.tar.xz
qemu-193fb5c9bd1fbf8a0b78c75f2056b0d7d9fc0ffe.zip
target/riscv: rvv-1.0: Add Zve64f support for single-width fp reduction insns
Vector single-width floating-point reduction operations for EEW=32 are supported for Zve64f extension. Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20220118014522.13613-8-frank.chang@sifive.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv')
-rw-r--r--target/riscv/insn_trans/trans_rvv.c.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc
index 56246a5d88..08f25e3ce4 100644
--- a/target/riscv/insn_trans/trans_rvv.c.inc
+++ b/target/riscv/insn_trans/trans_rvv.c.inc
@@ -2937,7 +2937,8 @@ GEN_OPIVV_WIDEN_TRANS(vwredsumu_vs, reduction_widen_check)
static bool freduction_check(DisasContext *s, arg_rmrr *a)
{
return reduction_check(s, a) &&
- require_rvf(s);
+ require_rvf(s) &&
+ require_zve64f(s);
}
GEN_OPFVV_TRANS(vfredsum_vs, freduction_check)