Re: [PATCH] target/riscv: fix vrgather macro index variable type bug

2021-04-19 Thread Richard Henderson
On 4/18/21 11:03 PM, frank.ch...@sifive.com wrote: From: Frank Chang ETYPE may be type of uint64_t, thus index variable has to be declared as type of uint64_t, too. Otherwise the value read from vs1 register may be truncated to type of uint32_t. Signed-off-by: Frank Chang --- target/riscv/vec

[PATCH] target/riscv: fix vrgather macro index variable type bug

2021-04-18 Thread frank . chang
From: Frank Chang ETYPE may be type of uint64_t, thus index variable has to be declared as type of uint64_t, too. Otherwise the value read from vs1 register may be truncated to type of uint32_t. Signed-off-by: Frank Chang --- target/riscv/vector_helper.c | 6 -- 1 file changed, 4 insertion