Fixe ARM NEON vrshl.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Anthony Liguori
From: Paul Brook <[email protected]>
Signed-off-by Paul Brook <[email protected]>target-arm/neon_helper.c +0
-0
target-arm/neon_helper.c uint64_t HELPER(neon_shl_s64)(uint64_t valop, uint64_t shiftop) · line 461
Quoted 7 lines
target-arm/neon_helper.c +1
-1@@ -456,11 +456,11 @@ uint64_t HELPER(neon_shl_s64)(uint64_t valop, uint64_t shiftop) if (tmp >= sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp < -sizeof(src1) * 8) { \ - dest >>= sizeof(src1) * 8 - 1; \ + dest = src1 >> (sizeof(src1) * 8 - 1); \ } else if (tmp == -sizeof(src1) * 8) { \ dest = src1 >> (tmp - 1); \
Isn't that a right shift by a negative amount?
Laurent
Quoted 6 lines
target-arm/neon_helper.c +1
-1dest++; \ - src2 >>= 1; \ + dest >>= 1; \ } else if (tmp < 0) { \ dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \ } else { \