> On Apr 13, 2016, at 7:03 PM, Kacper Gutowski wrote:
>
> On Thu, Apr 14, 2016 at 1:54 AM, Xiao-Yong Jin wrote:
>> Exactly so. ‘-Ofast -fno-finite-math-only’ gives correct results.
>> What’s going on here? I don’t expect this has anything to do with NaN or
>> Inf.
>
> pow(-8., 1./3) is nan.
On Thu, Apr 14, 2016 at 1:54 AM, Xiao-Yong Jin wrote:
> Exactly so. ‘-Ofast -fno-finite-math-only’ gives correct results.
> What’s going on here? I don’t expect this has anything to do with NaN or Inf.
pow(-8., 1./3) is nan.
And -ffinite-math-only eliminates isfinite check at FloatCell.cc:422.
Exactly so. ‘-Ofast -fno-finite-math-only’ gives correct results.
What’s going on here? I don’t expect this has anything to do with NaN or Inf.
> On Apr 13, 2016, at 2:13 PM, Jay Foad wrote:
>
> I'd guess -ffinite-math-only.
>
> Jay.
>
> On 13 April 2016 at 19:36, Xiao-Yong Jin wrote:
>> Lo
I'd guess -ffinite-math-only.
Jay.
On 13 April 2016 at 19:36, Xiao-Yong Jin wrote:
> Looks like a gcc optimization problem (clang works correctly).
> Using ‘-Ofast’ with gcc 5.3 reproduces the bug.
> Using ‘-O3’ works fine.
>
> So one of the options down here caused the bug:
> -fassociative-math
Looks like a gcc optimization problem (clang works correctly).
Using ‘-Ofast’ with gcc 5.3 reproduces the bug.
Using ‘-O3’ works fine.
So one of the options down here caused the bug:
-fassociative-math
-fcx-limited-range
-ffinite-math-only
-fmath-errno
-freciprocal-math
-fsigned-zeros
-ftrapping-m
Hi Xiao,
interesting. I am still getting this in *SVN**719*:
* 8 ¯8⋆÷3
2 1J1.732050808*
/// Jürgwn
On 04/13/2016 03:42 AM, Xiao-Yong Jin wrote:
Hi,
With the svn version 719,
8 ¯8⋆÷3
2 0.0
but with the release version 1.5,
8 ¯8⋆÷3
2 1J1.732050808
Best,
Xiao-Yon
Hi,
With the svn version 719,
8 ¯8⋆÷3
2 0.0
but with the release version 1.5,
8 ¯8⋆÷3
2 1J1.732050808
Best,
Xiao-Yong