]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/riscv: rvv: Check single width operator for vfncvt.rod.f.f.w
authorMax Chou <max.chou@sifive.com>
Fri, 22 Mar 2024 09:25:57 +0000 (17:25 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 5 Jun 2024 10:05:02 +0000 (13:05 +0300)
The opfv_narrow_check needs to check the single width float operator by
require_rvf.

Signed-off-by: Max Chou <max.chou@sifive.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Cc: qemu-stable <qemu-stable@nongnu.org>
Message-ID: <20240322092600.1198921-4-max.chou@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit 692f33a3abcaae789b08623e7cbdffcd2c738c89)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/insn_trans/trans_rvv.c.inc

index 6cb9bc9fde8265cc2d9e3c38d4e6034c9b706f2a..19059fea5f75ae4a9295f3fd4f2ff4d4f751af59 100644 (file)
@@ -2817,6 +2817,7 @@ static bool opffv_narrow_check(DisasContext *s, arg_rmr *a)
 static bool opffv_rod_narrow_check(DisasContext *s, arg_rmr *a)
 {
     return opfv_narrow_check(s, a) &&
+           require_rvf(s) &&
            require_scale_rvf(s) &&
            (s->sew != MO_8);
 }