qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix RVV calling incorrect RFV/RVD check functions bug
@ 2022-01-05  2:22 frank.chang
  2022-01-05  2:22 ` [PATCH v2 1/3] target/riscv: rvv-1.0: Call the correct RVF/RVD check function for widening fp insns frank.chang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: frank.chang @ 2022-01-05  2:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Frank Chang, qemu-riscv

From: Frank Chang <frank.chang@sifive.com>

For vector widening and narrowing floating-point instructions, we should
use require_scale_rvf() instead of require_rvf() to check whether the
correspond RVF/RVD is enabled if either source or destination
floating-point operand is double-width of SEW. Otherwise, illegal
instruction exception should be raised.

e.g. For SEW=16, if the source/destination floating-point operand is
double-width of SEW, RVF needs to be enabled. Otherwise, an illegal
instruction exception will be raised. Similarly, for SEW=32, RVD
needs to be enabled.

Changelog:

v2:
  * Fix patch title typos.
  * Add missing Signed-off-by.

Frank Chang (3):
  target/riscv: rvv-1.0: Call the correct RVF/RVD check function for
    widening fp insns
  target/riscv: rvv-1.0: Call the correct RVF/RVD check function for
    widening fp/int type-convert insns
  target/riscv: rvv-1.0: Call the correct RVF/RVD check function for
    narrowing fp/int type-convert insns

 target/riscv/insn_trans/trans_rvv.c.inc | 78 ++++++++++++++++++-------
 1 file changed, 57 insertions(+), 21 deletions(-)

--
2.31.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-05 22:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-05  2:22 [PATCH v2 0/3] Fix RVV calling incorrect RFV/RVD check functions bug frank.chang
2022-01-05  2:22 ` [PATCH v2 1/3] target/riscv: rvv-1.0: Call the correct RVF/RVD check function for widening fp insns frank.chang
2022-01-05 21:44   ` Alistair Francis
2022-01-05  2:22 ` [PATCH v2 2/3] target/riscv: rvv-1.0: Call the correct RVF/RVD check function for widening fp/int type-convert insns frank.chang
2022-01-05 21:46   ` Alistair Francis
2022-01-05  2:22 ` [PATCH v2 3/3] target/riscv: rvv-1.0: Call the correct RVF/RVD check function for narrowing " frank.chang
2022-01-05 21:47   ` Alistair Francis
2022-01-05 22:30 ` [PATCH v2 0/3] Fix RVV calling incorrect RFV/RVD check functions bug Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).