1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-22 07:20:00 +00:00

Catch up with Clang 12.

Add "znver3" for AMD and "alderlake" and "sapphirerapids" for Intel.
This commit is contained in:
Jung-uk Kim 2021-06-14 18:42:59 -04:00
parent 87799c5f85
commit 09e7341c5e
2 changed files with 17 additions and 13 deletions

View File

@ -30,19 +30,19 @@
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognized:
# Intel x86 architecture:
# (AMD CPUs) znver2, znver1, bdver4, bdver3, bdver2, bdver1,
# (AMD CPUs) znver3, znver2, znver1, bdver4, bdver3, bdver2, bdver1,
# btver2, btver1, amdfam10, opteron-sse3, athlon64-sse3,
# k8-sse3, opteron, athlon64, athlon-fx, k8, athlon-mp,
# athlon-xp, athlon-4, athlon-tbird, athlon, k7, geode,
# k6-3, k6-2, k6
# (Intel CPUs) tigerlake, cooperlake, cascadelake, tremont,
# goldmont-plus, icelake-server, icelake-client,
# cannonlake, knm, skylake-avx512, knl, goldmont,
# skylake, broadwell, haswell, ivybridge, sandybridge,
# westmere, nehalem, silvermont, bonnell, core2, core,
# nocona, pentium4m, pentium4, prescott, pentium3m,
# pentium3, pentium-m, pentium2, pentiumpro, pentium-mmx,
# pentium, i486
# (Intel CPUs) alderlake, sapphirerapids, tigerlake, cooperlake,
# cascadelake, tremont, goldmont-plus, icelake-server,
# icelake-client, cannonlake, knm, skylake-avx512, knl,
# goldmont, skylake, broadwell, haswell, ivybridge,
# sandybridge, westmere, nehalem, silvermont, bonnell,
# core2, core, nocona, pentium4m, pentium4, prescott,
# pentium3m, pentium3, pentium-m, pentium2, pentiumpro,
# pentium-mmx, pentium, i486
# (VIA CPUs) c7, c3-2, c3
# ARM architecture: armv5, armv5te, armv6, armv6t2, arm1176jzf-s, armv7,
# armv7-a, armv7ve, generic-armv7-a, cortex-a5,

View File

@ -160,7 +160,8 @@ _CPUCFLAGS = -mcpu=${CPUTYPE}
########## i386
. if ${MACHINE_CPUARCH} == "i386"
. if ${CPUTYPE} == "znver2" || ${CPUTYPE} == "znver1"
. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \
${CPUTYPE} == "znver1"
MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586
. elif ${CPUTYPE} == "bdver4"
MACHINE_CPU = xop avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586
@ -189,7 +190,8 @@ MACHINE_CPU = 3dnow mmx k6 k5 i586
MACHINE_CPU = mmx k6 k5 i586
. elif ${CPUTYPE} == "k5"
MACHINE_CPU = k5 i586
. elif ${CPUTYPE} == "tigerlake" || ${CPUTYPE} == "cooperlake" || \
. elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "sapphirerapids" || \
${CPUTYPE} == "tigerlake" || ${CPUTYPE} == "cooperlake" || \
${CPUTYPE} == "cascadelake" || ${CPUTYPE} == "icelake-server" || \
${CPUTYPE} == "icelake-client" || ${CPUTYPE} == "cannonlake" || \
${CPUTYPE} == "knm" || ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl"
@ -236,7 +238,8 @@ MACHINE_CPU = mmx
MACHINE_CPU += i486
########## amd64
. elif ${MACHINE_CPUARCH} == "amd64"
. if ${CPUTYPE} == "znver2" || ${CPUTYPE} == "znver1"
. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \
${CPUTYPE} == "znver1"
MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3
. elif ${CPUTYPE} == "bdver4"
MACHINE_CPU = xop avx2 avx sse42 sse41 ssse3 sse4a sse3
@ -255,7 +258,8 @@ MACHINE_CPU = k8 3dnow sse3
. elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || \
${CPUTYPE} == "athlon-fx" || ${CPUTYPE} == "k8"
MACHINE_CPU = k8 3dnow
. elif ${CPUTYPE} == "tigerlake" || ${CPUTYPE} == "cooperlake" || \
. elif ${CPUTYPE} == "alderlake" || ${CPUTYPE} == "sapphirerapids" || \
${CPUTYPE} == "tigerlake" || ${CPUTYPE} == "cooperlake" || \
${CPUTYPE} == "cascadelake" || ${CPUTYPE} == "icelake-server" || \
${CPUTYPE} == "icelake-client" || ${CPUTYPE} == "cannonlake" || \
${CPUTYPE} == "knm" || ${CPUTYPE} == "skylake-avx512" || ${CPUTYPE} == "knl"