]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
target-arm: Fix VQSHL of signed 64 bit values
authorJuha Riihimäki <juha.riihimaki@nokia.com>
Tue, 7 Dec 2010 14:13:42 +0000 (14:13 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Dec 2010 20:07:03 +0000 (21:07 +0100)
Add a missing '-' which meant that we were misinterpreting the shift
argument for VQSHL of 64 bit signed values and treating almost every
shift value as if it were an extremely large right shift.

Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/neon_helper.c

index 5e6452b9d927eaf3a5e993074a13255d55244a0b..d29b884614cdbc831c7818ef1cacdefb885dd209 100644 (file)
@@ -610,7 +610,7 @@ uint64_t HELPER(neon_qshl_s64)(CPUState *env, uint64_t valop, uint64_t shiftop)
             SET_QC();
             val = (val >> 63) & ~SIGNBIT64;
         }
-    } else if (shift <= 64) {
+    } else if (shift <= -64) {
         val >>= 63;
     } else if (shift < 0) {
         val >>= -shift;