mirror of https://github.com/xemu-project/xemu.git
target/arm: Fix sve_punpk_p vs odd vector lengths
Wrote too much with punpk1 with vl % 512 != 0. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210309155305.11301-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
8e7fefed1b
commit
fd911a2141
|
@ -2105,11 +2105,11 @@ void HELPER(sve_punpk_p)(void *vd, void *vn, uint32_t pred_desc)
|
|||
high = oprsz >> 1;
|
||||
}
|
||||
|
||||
if ((high & 3) == 0) {
|
||||
if ((oprsz & 7) == 0) {
|
||||
uint32_t *n = vn;
|
||||
high >>= 2;
|
||||
|
||||
for (i = 0; i < DIV_ROUND_UP(oprsz, 8); i++) {
|
||||
for (i = 0; i < oprsz / 8; i++) {
|
||||
uint64_t nn = n[H4(high + i)];
|
||||
d[i] = expand_bits(nn, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue