]> git.proxmox.com Git - qemu.git/commit
target-mips: fix mipsdsp_mul_q15_q15 and tests for MAQ_SA_W_PHL/PHR
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 15 Apr 2013 11:54:07 +0000 (13:54 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 15 Apr 2013 14:07:57 +0000 (16:07 +0200)
commitb1ca31d7ce648a10e3513bb4b5e7f89a8702aec7
tree6afd4ed29078d01fc1253ac0b78a3f81de016527
parente3d142d073d02f0a3a4aad79eb838c15b6f99c01
target-mips: fix mipsdsp_mul_q15_q15 and tests for MAQ_SA_W_PHL/PHR

The operands for MAQ_SA_W.PHL/MAQ_SA_W.PHR must in specified format.
Otherwise, the results are unpredictable. Once the operands were corrected
in the tests (part of this change), a bug in mipsdsp_mul_q15_q15 became
visible.

This change corrects the tests for MAQ_SA_W.PHL/MAQ_SA_W.PHR and fixes
sign-related issue in mipsdsp_mul_q15_q15. It also removes unnecessary
comment.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c
tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c