target-mips: fix conditional moves off fp condition codes
commit96bc323100b6132e3b39b664d0687225486fbcbe
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 25 Aug 2009 15:20:00 +0000 (25 08:20 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 25 Aug 2009 16:07:05 +0000 (25 18:07 +0200)
treebb981aba3ec8b86c38a460569b2e603c0a3f42d5
parent8be3691a9adcf8e75b77dffedd76837504e54c46
target-mips: fix conditional moves off fp condition codes

Conditional moves off fp condition codes were using the result of
get_fp_bit to isolate and test the relevant condition code.  However,
get_fp_bit returns the bit number of the condition code, not a
bitmask.  (Compare the use of get_fp_bit in gen_compute_branch1, for
instance.)

Fixed by shifting a bitmask into place using the result of get_fp_bit in
the relevant functions (gen_mov{ci,cf_s,cf_d,cf_ps}).

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c