OSDN Git Service

target-mips: fix for sign-issue in MULQ_W helper
authorPetar Jovanovic <petarj@mips.com>
Thu, 7 Feb 2013 18:36:09 +0000 (19:36 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 23 Feb 2013 21:20:45 +0000 (22:20 +0100)
commita345481baa2b2fb3d54f8c9ddb58dfcaf75786df
treef644378b66e59d6f0251c62ab43244f117584d28
parent9c19eb1e205b29018f6f61c5f43db6abbe7dc0e5
target-mips: fix for sign-issue in MULQ_W helper

Correct sign-propagation before multiplication in MULQ_W helper.
The change also fixes previously incorrect expected values in the
tests for MULQ_RS.W and MULQ_S.W.

Signed-off-by: Petar Jovanovic <petarj@mips.com>
Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
tests/tcg/mips/mips32-dspr2/mulq_s_w.c