]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 May 2025 06:56:55 +0000 (09:56 +0300)
commit28ee50bbe9c73f531b52485b017d040c03819cd4
tree33cc46c66604cbd4410573d0b8d2e618f48ee84c
parent6c4ddafa0daedf88aca19a8bd872519b7bc2da19
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
(cherry picked from commit 629c2a8dd7506e1cb9b6b7127604641632ac453f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/insn_trans/trans_rvv.c.inc