target/riscv: rvv-1.0: Add ELEN checks for widening and narrowing instructions
authorFrank Chang <frank.chang@sifive.com>
Fri, 10 Dec 2021 07:57:03 +0000 (15:57 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 20 Dec 2021 04:53:31 +0000 (14:53 +1000)
commitcc13aa3614519159e21f5bc1710c13fc79323853
treeedd9181df8fc907e474dcf3a95a5a11a70de02b0
parent45ca2ca6bdfbfc802fde87721ff3d164ea970d3d
target/riscv: rvv-1.0: Add ELEN checks for widening and narrowing instructions

SEW has the limitation which cannot exceed ELEN.

Widening instructions have a destination group with EEW = 2*SEW
and narrowing instructions have a source operand with EEW = 2*SEW.
Both of the instructions have the limitation of: 2*SEW <= ELEN.

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20211210075704.23951-78-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/insn_trans/trans_rvv.c.inc
target/riscv/translate.c