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

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

vfncvt.f.f.w, vfncvt.rod.f.f.w convert double-width floating-point to
single-width integer. 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-4-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/insn_trans/trans_rvv.c.inc