[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rul
From: |
Max Filippov |
Subject: |
Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rules |
Date: |
Sun, 9 Sep 2012 16:13:45 +0400 |
On Sun, Sep 9, 2012 at 1:31 PM, Peter Maydell <address@hidden> wrote:
> On 9 September 2012 02:29, Max Filippov <address@hidden> wrote:
>> @@ -262,9 +263,13 @@ float32 float32_maybe_silence_nan( float32 a_ )
>> # error Rules for silencing a signaling NaN are target-specific
>> # endif
>> #else
>> +# if defined(TARGET_XTENSA)
>> + return a_;
>> +# else
>> uint32_t a = float32_val(a_);
>> a |= (1 << 22);
>> return make_float32(a);
>> +# endif
>> #endif
>> }
>> return a_;
>
> So this looks rather odd, because just returning a_ is making
> no attempt to turn a signaling NaN into a quiet one. Looking at
I thought it would be quite in spirit of that 'maybe' part of the
function name (:
> the Xtensa ISA it says it doesn't have signaling NaNs. Maybe
> it would be better to have a define for NO_SIGNALING_NANS
> which made float*_is_signaling_nan() always return false and
> float*_is_quiet_nan() always return true?
Ok, will do so.
--
Thanks.
-- Max
[Qemu-devel] [PATCH 4/9] target-xtensa: add FP registers, Max Filippov, 2012/09/08
[Qemu-devel] [PATCH 5/9] target-xtensa: implement LSCX and LSCI groups, Max Filippov, 2012/09/08
[Qemu-devel] [PATCH 6/9] target-xtensa: implement FP0 arithmetic, Max Filippov, 2012/09/08
[Qemu-devel] [PATCH 7/9] target-xtensa: implement FP0 conversions, Max Filippov, 2012/09/08