Skip to content

Commit

Permalink
target-s390: Use uint64_to_float128
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Jan 5, 2013
1 parent 1d1f630 commit d2d9fea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-s390x/fpu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,7 @@ uint64_t HELPER(cdlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
uint64_t HELPER(cxlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
{
int hold = swap_round_mode(env, m3);
/* ??? Not 50% correct. */
float128 ret = int64_to_float128(v2, &env->fpu_status);
float128 ret = uint64_to_float128(v2, &env->fpu_status);
set_float_rounding_mode(hold, &env->fpu_status);
handle_exceptions(env, GETPC());
return RET128(ret);
Expand Down

0 comments on commit d2d9fea

Please sign in to comment.