Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2021 13:35:46 GMT
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 362fef2f4a99 - main - bsd.cpu.mk: add support for x86-64-v[234] levels as CPUTYPE
Message-ID:  <202108061335.176DZkKr073843@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/src/commit/?id=362fef2f4a9954c0f5eeecbe512cc5abbdc44263

commit 362fef2f4a9954c0f5eeecbe512cc5abbdc44263
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-08-06 13:33:37 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2021-08-06 13:33:37 +0000

    bsd.cpu.mk: add support for x86-64-v[234] levels as CPUTYPE
    
    These are supported in LLVM 12 and GCC 11:
    
    https://github.com/llvm/llvm-project/commit/012dd42e027e
    https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=324bec558e95584e8c1997575ae9d75978af59f1
    
    Differential Revision:  https://reviews.freebsd.org/D29150
---
 share/mk/bsd.cpu.mk | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 81a1f0f0dd32..f269bb110ed7 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -194,16 +194,19 @@ MACHINE_CPU = k5 i586
     ${CPUTYPE} == "cooperlake" || ${CPUTYPE} == "cascadelake" || \
     ${CPUTYPE} == "icelake-server" || ${CPUTYPE} == "icelake-client" || \
     ${CPUTYPE} == "cannonlake" || ${CPUTYPE} == "knm" || \
-    ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl"
+    ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" || \
+    ${CPUTYPE} == "x86-64-v4"
 MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "skylake" || \
-    ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell"
+    ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" || \
+    ${CPUTYPE} == "x86-64-v3"
 MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "ivybridge" || ${CPUTYPE} == "sandybridge"
 MACHINE_CPU = avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "tremont" || ${CPUTYPE} == "goldmont-plus" || \
     ${CPUTYPE} == "goldmont" || ${CPUTYPE} == "westmere" || \
-    ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont"
+    ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" || \
+    ${CPUTYPE} == "x86-64-v2"
 MACHINE_CPU = sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "penryn"
 MACHINE_CPU = sse41 ssse3 sse3 sse2 sse i686 mmx i586
@@ -212,7 +215,7 @@ MACHINE_CPU = ssse3 sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "yonah" || ${CPUTYPE} == "prescott"
 MACHINE_CPU = sse3 sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || \
-    ${CPUTYPE} == "pentium-m"
+    ${CPUTYPE} == "pentium-m" || ${CPUTYPE} == "x86-64"
 MACHINE_CPU = sse2 sse i686 mmx i586
 .  elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m"
 MACHINE_CPU = sse i686 mmx i586
@@ -262,16 +265,19 @@ MACHINE_CPU = k8 3dnow
     ${CPUTYPE} == "cooperlake" || ${CPUTYPE} == "cascadelake" || \
     ${CPUTYPE} == "icelake-server" || ${CPUTYPE} == "icelake-client" || \
     ${CPUTYPE} == "cannonlake" || ${CPUTYPE} == "knm" || \
-    ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl"
+    ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl" || \
+    ${CPUTYPE} == "x86-64-v4"
 MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse3
 .  elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "skylake" || \
-    ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell"
+    ${CPUTYPE} == "broadwell" || ${CPUTYPE} == "haswell" || \
+    ${CPUTYPE} == "x86-64-v3"
 MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3
 .  elif ${CPUTYPE} == "ivybridge" || ${CPUTYPE} == "sandybridge"
 MACHINE_CPU = avx sse42 sse41 ssse3 sse3
 .  elif ${CPUTYPE} == "tremont" || ${CPUTYPE} == "goldmont-plus" || \
     ${CPUTYPE} == "goldmont" || ${CPUTYPE} == "westmere" || \
-    ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont"
+    ${CPUTYPE} == "nehalem" || ${CPUTYPE} == "silvermont" || \
+    ${CPUTYPE} == "x86-64-v2"
 MACHINE_CPU = sse42 sse41 ssse3 sse3
 .  elif ${CPUTYPE} == "penryn"
 MACHINE_CPU = sse41 ssse3 sse3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108061335.176DZkKr073843>