Re: HEADSUP: math is broken with clang and optimization

2021-02-15 Thread Steve Kargl
On Mon, Feb 15, 2021 at 03:27:08PM -0800, Mark Millard wrote: > > On Mon, Feb 15, 2021 at 01:03:36PM -0800, Steve Kargl wrote: > > > On Mon, Feb 15, 2021 at 12:49:13PM -0800, Steve Kargl wrote: > > > > On Sun, Feb 14, 2021 at 01:59:58PM -0800, Steve Kargl wrote: > > > > > Just a headsup for anyone

Re: HEADSUP: math is broken with clang and optimization

2021-02-15 Thread Mark Millard via freebsd-current
> On Mon, Feb 15, 2021 at 01:03:36PM -0800, Steve Kargl wrote: > > On Mon, Feb 15, 2021 at 12:49:13PM -0800, Steve Kargl wrote: > > > On Sun, Feb 14, 2021 at 01:59:58PM -0800, Steve Kargl wrote: > > > > Just a headsup for anyone doing numerical work with > > > > FreeBSD-current. clang with optimiz

Re: HEADSUP: math is broken with clang and optimization

2021-02-15 Thread Steve Kargl
On Mon, Feb 15, 2021 at 01:03:36PM -0800, Steve Kargl wrote: > On Mon, Feb 15, 2021 at 12:49:13PM -0800, Steve Kargl wrote: > > On Sun, Feb 14, 2021 at 01:59:58PM -0800, Steve Kargl wrote: > > > Just a headsup for anyone doing numerical work with > > > FreeBSD-current. clang with optimization of -

Re: HEADSUP: math is broken with clang and optimization

2021-02-15 Thread Steve Kargl
On Mon, Feb 15, 2021 at 12:49:13PM -0800, Steve Kargl wrote: > On Sun, Feb 14, 2021 at 01:59:58PM -0800, Steve Kargl wrote: > > Just a headsup for anyone doing numerical work with > > FreeBSD-current. clang with optimization of -O1 or > > higher produces wrong results. Testing 1 million > > comp

Re: HEADSUP: math is broken with clang and optimization

2021-02-15 Thread Steve Kargl
On Sun, Feb 14, 2021 at 01:59:58PM -0800, Steve Kargl wrote: > Just a headsup for anyone doing numerical work with > FreeBSD-current. clang with optimization of -O1 or > higher produces wrong results. Testing 1 million > complex values of ccoshf and limiting |z| < 20, > shows > This is either