summaryrefslogtreecommitdiff
path: root/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
diff options
context:
space:
mode:
authorPetar Jovanovic <petarj@mips.com>2013-02-07 19:36:09 +0100
committerMichael Roth <mdroth@linux.vnet.ibm.com>2013-04-04 16:31:57 -0500
commitb09a67316484af24427a7174b65531e9c0b6e6b4 (patch)
treef70664bd0955f84ba23c3329fad45190dcfa25bb /tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
parent79a4dd4085fceaaf23b619e1e269478306226f16 (diff)
downloadqemu-b09a67316484af24427a7174b65531e9c0b6e6b4.tar.gz
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> (cherry picked from commit a345481baa2b2fb3d54f8c9ddb58dfcaf75786df) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'tests/tcg/mips/mips32-dspr2/mulq_rs_w.c')
-rw-r--r--tests/tcg/mips/mips32-dspr2/mulq_rs_w.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c b/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
index 669405faf1..7ba633bc17 100644
--- a/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
+++ b/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
@@ -8,7 +8,7 @@ int main()
rs = 0x80001234;
rt = 0x80004321;
- result = 0x80005555;
+ result = 0x7FFFAAAB;
__asm
("mulq_rs.w %0, %1, %2\n\t"