]> git.proxmox.com Git - qemu.git/commit
target-mips: fix mipsdsp_mul_q31_q31
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 29 Jul 2013 02:06:12 +0000 (04:06 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 29 Jul 2013 05:48:17 +0000 (07:48 +0200)
commitb6a9f4682e62c686995cc1a1fe2ef4a57a92020b
tree6f11a2a886c713b4c84180404d3f468d3051c0a4
parentf05d4d94d6bb0e240e6cfda65972fd86601f9f0d
target-mips: fix mipsdsp_mul_q31_q31

Multiplication of two fractional word elements is not correct when sign
extension/promotion is needed. This change fixes it by adding correct
casts from unsigned to signed values.
In addition, the tests (dpaq_sa_l_w.c and dpsq_sa_l_w.c) have been extended
to trigger the current issue.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c
tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c