target-mips: fix rndrashift_short_acc and code for EXTR_ instructions
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 15 Mar 2013 17:56:19 +0000 (18:56 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 17 Mar 2013 00:06:34 +0000 (01:06 +0100)
commit8b758d0568a986d58c254b3c209691c82e0f82a1
tree1577cab8cc5b6624914c4df9c4ee5a2a37dbf794
parentb1999e87b4d42305419329cae459e1b43f706d96
target-mips: fix rndrashift_short_acc and code for EXTR_ instructions

Fix for rndrashift_short_acc to set correct value to higher 64 bits.
This change also corrects conditions when bit 23 of the DSPControl register
is set.

The existing test files have been extended with several examples that
trigger the issues. One bug/example in the test file for EXTR_RS_W has been
found and reported by Klaus Peichl.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dsp/extr_r_w.c
tests/tcg/mips/mips32-dsp/extr_rs_w.c
tests/tcg/mips/mips32-dsp/extr_w.c