Re: [Qemu-devel] [PATCH] target-mips: fix mipsdsp_mul_q31_q31

2013-07-29 Thread Aurelien Jarno
On Mon, Jul 29, 2013 at 04:06:12AM +0200, Petar Jovanovic wrote: > From: Petar Jovanovic > > 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 t

[Qemu-devel] [PATCH] target-mips: fix mipsdsp_mul_q31_q31

2013-07-28 Thread Petar Jovanovic
From: Petar Jovanovic 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 curr