]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: rvv: Apply vext_check_input_eew to vrgather instructions to check misma...
authorMax Chou <max.chou@sifive.com>
Tue, 8 Apr 2025 10:39:31 +0000 (18:39 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 19 May 2025 03:38:40 +0000 (13:38 +1000)
commit629c2a8dd7506e1cb9b6b7127604641632ac453f
tree27735c564d440b1086773cb8fbbd357d159fc3c3
parentb0450a101d6c88789d0e8df2bcbef61bc7cd159a
target/riscv: rvv: Apply vext_check_input_eew to vrgather instructions to check mismatched input EEWs encoding constraint

According to the v spec, a vector register cannot be used to provide source
operands with more than one EEW for a single instruction.
The vs1 EEW of vrgatherei16.vv is 16.

Co-authored-by: Anton Blanchard <antonb@tenstorrent.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Max Chou <max.chou@sifive.com>
Message-ID: <20250408103938.3623486-4-max.chou@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Cc: qemu-stable@nongnu.org
target/riscv/insn_trans/trans_rvv.c.inc