Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2021 18:18:12 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "Kevin P. Neal" <kpn@neutralgood.org>
Cc:        bugzilla-noreply@freebsd.org, bugs@freebsd.org
Subject:   =?utf-8?Q?Re=3A_=5BBug_254911=5D_lib/msun/ctrig=5Ftest_fails_if_c?= =?utf-8?Q?ompiled_with_AVX=C2=A0=28-mavx=29_or_any_CPUSET_enabling_AVX?=
Message-ID:  <31E3B124-DDE2-4CD0-8D02-380FD2C907F4@FreeBSD.org>
In-Reply-To: <YHJRrva/xqM97kF6@neutralgood.org>
References:  <bug-254911-227@https.bugs.freebsd.org/bugzilla/> <bug-254911-227-3m8N8REmTF@https.bugs.freebsd.org/bugzilla/> <YHJRrva/xqM97kF6@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_36B77F6D-7731-4FEB-B792-A1D1D7894718
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 11 Apr 2021, at 03:32, Kevin P. Neal <kpn@neutralgood.org> wrote:
>=20
> On Sat, Apr 10, 2021 at 02:04:29PM +0000, bugzilla-noreply@freebsd.org =
wrote:
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254911
>>=20
>> --- Comment #5 from commit-hook@FreeBSD.org ---
>> A commit in branch main references this bug:
>>=20
>> URL:
>> =
https://cgit.FreeBSD.org/src/commit/?id=3Dbae9fd0b33462e9506c3ac3400089c6d=
bc4aee8f
>>=20
>> commit bae9fd0b33462e9506c3ac3400089c6dbc4aee8f
>> Author:     Dimitry Andric <dim@FreeBSD.org>
>> AuthorDate: 2021-04-10 14:02:49 +0000
>> Commit:     Dimitry Andric <dim@FreeBSD.org>
>> CommitDate: 2021-04-10 14:02:58 +0000
>>=20
>>    Only use -fp-exception-behavior=3Dmaytrap on x86, for now
>>=20
>>    After 3b00222f156d, it turns out that clang only supports strict
>>    floating point semantics for SystemZ and x86 at the moment, while =
for
>>    other architectures it is still experimental.
>>=20
>>    Therefore, only use -fp-exception-behavior=3Dmaytrap on x86 for =
now,
>>    otherwise this option results in "error: overriding currently
>>    unsupported use of floating point exceptions on this target
>>    [-Werror,-Wunsupported-floating-point-opt]" on other =
architectures.
>=20
> I can't remember exactly when, but clang 11 is probably when it gained
> support for PowerPC. Don't hold me to that, though. Keep that on the =
list
> of changes to check on when upgrading to a newer version of clang. As =
for
> AArch64, if anyone is working on it they aren't saying anything at =
all.

Ah yes, with llvm main (llvmorg-13-init-6905-g91248e2db93a) as of today:

% ag -s HasStrictFP
clang/include/clang/Basic/TargetInfo.h
204:  bool HasStrictFP;
595:  virtual bool hasStrictFP() const { return HasStrictFP; }

clang/lib/Basic/TargetInfo.cpp
40:  HasStrictFP =3D false;

clang/lib/Basic/Targets/SystemZ.h
51:    HasStrictFP =3D true;

clang/lib/Basic/Targets/PPC.h
87:    HasStrictFP =3D true;

clang/lib/Basic/Targets/X86.h
151:    HasStrictFP =3D true;

The PPC StrictFP support got turned on in:

=
https://github.com/llvm/llvm-project/commit/8ecc8520bc5bc20ae00c13e5ae13f8=
edbb80642e

on 2020-09-11, so it will be in 12.0.0 release, at least.

Though the commit message still says "Since work for enabling
constrained FP on PowerPC is almost done, we'd like to enable it". No
idea how done it is. :)

-Dimitry


--Apple-Mail=_36B77F6D-7731-4FEB-B792-A1D1D7894718
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYHMhRAAKCRCwXqMKLiCW
owBLAKCXQILvj8m2dO6FKQwMzrh/D7Nt+wCeJW93+vrDIAyKYMvV+r+IQCAc6bw=
=SuE2
-----END PGP SIGNATURE-----

--Apple-Mail=_36B77F6D-7731-4FEB-B792-A1D1D7894718--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31E3B124-DDE2-4CD0-8D02-380FD2C907F4>