sim-card
/
qemu
Archived
10
0
Fork 0

target-arm: Fix Neon VQ(R)DMULH.S16 instructions

Correct an error in the implementation of the 16 bit
forms of VQ(R)DMULH, bringing them into line with the
32 bit implementation.

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>
This commit is contained in:
Juha Riihimäki 2011-01-27 19:18:35 +00:00 committed by Aurelien Jarno
parent 92e3c2a39e
commit 46eece9d89
1 changed files with 2 additions and 1 deletions

View File

@ -880,8 +880,9 @@ uint32_t HELPER(neon_cnt_u8)(uint32_t x)
if ((tmp ^ (tmp << 1)) & SIGNBIT) { \
SET_QC(); \
tmp = (tmp >> 31) ^ ~SIGNBIT; \
} else { \
tmp <<= 1; \
} \
tmp <<= 1; \
if (round) { \
int32_t old = tmp; \
tmp += 1 << 15; \