Skip to content

Commit

Permalink
target-sh4: use float32_muladd() to implement fmac
Browse files Browse the repository at this point in the history
There is no need to add a SH4 specific pickNaNMulAdd() to softfloat as
SH4 is always returning a default NaN.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
aurel32 committed Sep 21, 2012
1 parent f8e7343 commit ff2086f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-sh4/op_helper.c
Expand Up @@ -623,8 +623,7 @@ float64 helper_float_DT(CPUSH4State *env, uint32_t t0)
float32 helper_fmac_FT(CPUSH4State *env, float32 t0, float32 t1, float32 t2)
{
set_float_exception_flags(0, &env->fp_status);
t0 = float32_mul(t0, t1, &env->fp_status);
t0 = float32_add(t0, t2, &env->fp_status);
t0 = float32_muladd(t0, t1, t2, 0, &env->fp_status);
update_fpscr(env, GETPC());
return t0;
}
Expand Down

0 comments on commit ff2086f

Please sign in to comment.