diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2011-02-15 13:44:46 +0000 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 17:43:01 +0100 |
commit | b408a9b072fdc3d9b1d732ec7bddce52b2030315 (patch) | |
tree | 9a1d13ec6848f17e836c7c07694ca1f992235334 /target-arm/translate.c | |
parent | 960e623bfd45c92ce165177b8a0e748867fe5878 (diff) | |
download | qemu-b408a9b072fdc3d9b1d732ec7bddce52b2030315.zip qemu-b408a9b072fdc3d9b1d732ec7bddce52b2030315.tar.gz qemu-b408a9b072fdc3d9b1d732ec7bddce52b2030315.tar.bz2 |
target-arm: fix Neon VQSHRN and VSHRN.
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>
Diffstat (limited to 'target-arm/translate.c')
-rw-r--r-- | target-arm/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c index 16d2ebf..e8e6b42 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -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 { |