]> git.proxmox.com Git - qemu.git/commit
target-arm: Set Q bit for overflow in SMUAD and SMLAD
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 11 Mar 2011 10:09:58 +0000 (10:09 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 22 Mar 2011 06:56:08 +0000 (07:56 +0100)
commite1d177b922f52569e900e96d611caa09655bdec9
treecc59ba99ea1a52d258c442da47aaa646d8fef3e5
parentdb6e2e65adddfcdc3f81026df7fd490e13813e8a
target-arm: Set Q bit for overflow in SMUAD and SMLAD

SMUAD and SMLAD are supposed to set the Q bit if the addition of
the two 16x16 multiply products and optional accumulator overflows
considered as a signed value. However we were only doing this check
for the addition of the accumulator, not when adding the products,
with the effect that we were mishandling the edge case where
both inputs are 0x80008000.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c