]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target-arm: fix Neon VQSHRN and VSHRN.
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 15 Feb 2011 13:44:46 +0000 (13:44 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Feb 2011 16:43:01 +0000 (17:43 +0100)
Call the normal shift helpers instead of the rounding ones.

Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c

index 16d2ebf366bce72f5eaab7f150f98fdbae4ffa8a..e8e6b42431e2c0112737ff1eac5d42add516819d 100644 (file)
@@ -4063,8 +4063,8 @@ static inline void gen_neon_shift_narrow(int size, TCGv var, TCGv shift,
     } else {
         if (u) {
             switch (size) {
-            case 1: gen_helper_neon_rshl_u16(var, var, shift); break;
-            case 2: gen_helper_neon_rshl_u32(var, var, shift); break;
+            case 1: gen_helper_neon_shl_u16(var, var, shift); break;
+            case 2: gen_helper_neon_shl_u32(var, var, shift); break;
             default: abort();
             }
         } else {