]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures
authorDimitry Andric <dim@FreeBSD.org>
Thu, 18 Apr 2024 17:46:57 +0000 (19:46 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 18 Apr 2024 18:42:21 +0000 (20:42 +0200)
commit2fd73b7126d7d7e5701e001af929411ce7a0c5f1
treead9c37be4cbf7d01e3b8a868aba7f989c0c93463
parentcb9d4bb1fbb9ac0eb9f211656e91f9d5254c166c
share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures

As discussed in bug 278417, some ports require the F16C instruction set
to compile, but there is no way yet to detect whether the currently
chosen CPUTYPE supports this feature.

Add the feature to the MACHINE_CPU variable, for each processor that
supports it. The list of processors was extracted from clang 18's -dM
output, filtered on the __F16C__ define.

PR: 278417
Reviewed by: brooks, emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44848
share/mk/bsd.cpu.mk