projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8e7343
)
target-sh4: use float32_muladd() to implement fmac
author
Aurelien Jarno
<aurelien@aurel32.net>
Sun, 16 Sep 2012 11:12:20 +0000
(13:12 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 21 Sep 2012 17:53:15 +0000
(19:53 +0200)
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>
target-sh4/op_helper.c
patch
|
blob
|
history
diff --git
a/target-sh4/op_helper.c
b/target-sh4/op_helper.c
index 9b4328de37a177e60e1dd58f5abd8cc8ae2dc2a4..bf835fac0f5bf7e8bb74320869497c3d5d83b294 100644
(file)
--- a/
target-sh4/op_helper.c
+++ b/
target-sh4/op_helper.c
@@
-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;
}