target-mips: Fix for helpers for EXTR_* instructions
commitb8abbbe8df5e04085f4b85fc4f7cf85efbcd492c
authorPetar Jovanovic <petarj@mips.com>
Mon, 10 Dec 2012 15:28:17 +0000 (10 16:28 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 1 Jan 2013 10:11:38 +0000 (1 11:11 +0100)
tree597fbe25eec8e83317cf933f93106d938858aeab
parenteec8972a5bc744eda695a86a984d746c240dff90
target-mips: Fix for helpers for EXTR_* instructions

The change removes some unnecessary and incorrect code for EXTR_S.H.
Further, it corrects the mask for shift value in the EXTR_ instructions. It also
extends the existing tests so they trigger the issues corrected with the change.

Signed-off-by: Petar Jovanovic <petarj@mips.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_s_h.c
tests/tcg/mips/mips32-dsp/extr_w.c
tests/tcg/mips/mips32-dsp/extrv_r_w.c
tests/tcg/mips/mips32-dsp/extrv_rs_w.c
tests/tcg/mips/mips32-dsp/extrv_s_h.c
tests/tcg/mips/mips32-dsp/extrv_w.c