|
From: | gaosong |
Subject: | Re: [PATCH v2 4/4] target/loongarch: flogb_{s/d} add set float_flag_divbyzero |
Date: | Thu, 29 Sep 2022 15:27:35 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
在 2022/9/28 下午11:24, Richard Henderson 写道:
On 9/26/22 23:48, Song Gao wrote:if fj ==0 or fj == INT32_MIN/INT64_MIN, LoongArch host set fcsr cause exception FP_DIV0,So we need set exception flags float_flagdivbyzero if fj ==0.You are correct that ieee754 says that logB(0) should raise divbyzero. This should be fixed in softfloat-parts.c.inc, not here, within case float_class_zero: /* log2(0) = -inf */ a->cls = float_class_inf; a->sign = 1; return;
Ok , I will correct it on v3. Thanks. Song Gao
r~
[Prev in Thread] | Current Thread | [Next in Thread] |