diff options
Diffstat (limited to 'target-sh4/op_helper.c')
-rw-r--r-- | target-sh4/op_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c index 5d9c4146af..48a170f79c 100644 --- a/target-sh4/op_helper.c +++ b/target-sh4/op_helper.c @@ -489,6 +489,12 @@ uint64_t helper_fmul_DT(uint64_t t0, uint64_t t1) return *(uint64_t*)(&ret); } +uint32_t helper_fneg_T(uint32_t t0) +{ + float32 ret = float32_chs(*(float32*)&t0); + return *(uint32_t*)(&ret); +} + uint32_t helper_fsqrt_FT(uint32_t t0) { float32 ret = float32_sqrt(*(float32*)&t0, &env->fp_status); |