aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/mips/mips32-dspr2
diff options
context:
space:
mode:
authorPetar Jovanovic <petarj@mips.com>2013-02-07 19:36:09 +0100
committerAurelien Jarno <aurelien@aurel32.net>2013-02-23 22:20:45 +0100
commita345481baa2b2fb3d54f8c9ddb58dfcaf75786df (patch)
treef644378b66e59d6f0251c62ab43244f117584d28 /tests/tcg/mips/mips32-dspr2
parent9c19eb1e205b29018f6f61c5f43db6abbe7dc0e5 (diff)
downloadqemu-a345481baa2b2fb3d54f8c9ddb58dfcaf75786df.zip
qemu-a345481baa2b2fb3d54f8c9ddb58dfcaf75786df.tar.gz
qemu-a345481baa2b2fb3d54f8c9ddb58dfcaf75786df.tar.bz2
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>
Diffstat (limited to 'tests/tcg/mips/mips32-dspr2')
-rw-r--r--tests/tcg/mips/mips32-dspr2/mulq_rs_w.c2
-rw-r--r--tests/tcg/mips/mips32-dspr2/mulq_s_w.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c b/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
index 669405f..7ba633b 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"
diff --git a/tests/tcg/mips/mips32-dspr2/mulq_s_w.c b/tests/tcg/mips/mips32-dspr2/mulq_s_w.c
index df148b7..9c2be06 100644
--- a/tests/tcg/mips/mips32-dspr2/mulq_s_w.c
+++ b/tests/tcg/mips/mips32-dspr2/mulq_s_w.c
@@ -8,7 +8,7 @@ int main()
rs = 0x80001234;
rt = 0x80004321;
- result = 0x80005555;
+ result = 0x7FFFAAAB;
__asm
("mulq_s.w %0, %1, %2\n\t"