Skip to contentSkip to conversation

Fixe ARM NEON vrshl.

Qemu-devel Laurent Desnogues 1 participant 1 message May 9, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Anthony Liguori

From: Paul Brook <[email protected]>

target-arm/neon_helper.c +0 -0
index 4ee5658..35fbaf5 100644

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 -1
         dest++; \
-        src2 >>= 1; \
+        dest >>= 1; \
     } else if (tmp < 0) { \
         dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \
     } else { \