提交 d2d9feac 编写于 作者: R Richard Henderson

target-s390: Use uint64_to_float128

Signed-off-by: NRichard Henderson <rth@twiddle.net>
上级 1d1f6301
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册