target/riscv: rvv-1.0: Call the correct RVF/RVD check function for widening fp/int...
authorFrank Chang <frank.chang@sifive.com>
Wed, 5 Jan 2022 02:22:45 +0000 (10:22 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 8 Jan 2022 05:46:09 +0000 (15:46 +1000)
commit91cade44cd49e23114c3101ef22d8a0b370523ae
treebd4f28b3875a85dc0e7b2781a1e3519cd2d21c8e
parent629ccdaa4e43c39d38d67b5ba1cec2bbedb6104d
target/riscv: rvv-1.0: Call the correct RVF/RVD check function for widening fp/int type-convert insns

vfwcvt.xu.f.v, vfwcvt.x.f.v, vfwcvt.rtz.xu.f.v and vfwcvt.rtz.x.f.v
convert single-width floating-point to double-width integer.
Therefore, should use require_rvf() to check whether RVF/RVD is enabled.

vfwcvt.f.xu.v, vfwcvt.f.x.v convert single-width integer to double-width
floating-point, and vfwcvt.f.f.v convert double-width floating-point to
single-width floating-point. Therefore, should use require_scale_rvf() to
check whether RVF/RVD is enabled.

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20220105022247.21131-3-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/insn_trans/trans_rvv.c.inc