target/riscv: fix vrgather macro index variable type bug
commitb11e84b883bf9b790732a03703559bf4797ad272
authorFrank Chang <frank.chang@sifive.com>
Mon, 19 Apr 2021 06:03:01 +0000 (19 14:03 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 11 May 2021 10:02:07 +0000 (11 20:02 +1000)
tree51ddf348967e8e980e13d4789eefa441210d25bb
parented6eebaaafd3b96cc4ef3dcc30eb3a26c20ece57
target/riscv: fix vrgather macro index variable type bug

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 <frank.chang@sifive.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210419060302.14075-1-frank.chang@sifive.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/vector_helper.c