Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-14 Thread Xiao-Yong Jin
> 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.

Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-13 Thread Kacper Gutowski
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.

Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-13 Thread Xiao-Yong Jin
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

Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-13 Thread Jay Foad
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

Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-13 Thread Xiao-Yong Jin
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

Re: [Bug-apl] fractional power ¯8⋆÷3

2016-04-13 Thread Juergen Sauermann
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

[Bug-apl] fractional power ¯8⋆÷3

2016-04-12 Thread Xiao-Yong Jin
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