Add new CPUTYPEs supported by Clang 3.4, i.e., AMD Steamroller (bdver3) and

Intel Silvermont (slm) processors.
This commit is contained in:
Jung-uk Kim 2014-03-20 19:17:46 +00:00
parent 5344d9d8bb
commit 6619822598
2 changed files with 8 additions and 6 deletions

View File

@ -45,8 +45,8 @@
# if omitted), ultrasparc3
# Additionally the following CPU types are recognized by clang:
# Intel x86 architecture (for both amd64 and i386):
# (AMD CPUs) bdver2, bdver1, btver2, btver1
# (Intel CPUs) core-avx2, core-avx-i, corei7-avx, corei7, atom
# (AMD CPUs) bdver3, bdver2, bdver1, btver2, btver1
# (Intel CPUs) slm, core-avx2, core-avx-i, corei7-avx, corei7, atom
#
# (?= allows to buildworld for a different CPUTYPE.)
#

View File

@ -142,7 +142,8 @@ _CPUCFLAGS = -mcpu=ultrasparc3
# presence of a CPU feature.
. if ${MACHINE_CPUARCH} == "i386"
. if ${CPUTYPE} == "bdver2" || ${CPUTYPE} == "bdver1"
. if ${CPUTYPE} == "bdver3" || ${CPUTYPE} == "bdver2" || \
${CPUTYPE} == "bdver1"
MACHINE_CPU = xop avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586
. elif ${CPUTYPE} == "btver2"
MACHINE_CPU = avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586
@ -170,7 +171,7 @@ MACHINE_CPU = k5 i586
MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
. elif ${CPUTYPE} == "core-avx-i" || ${CPUTYPE} == "corei7-avx"
MACHINE_CPU = avx sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
. elif ${CPUTYPE} == "corei7"
. elif ${CPUTYPE} == "slm" || ${CPUTYPE} == "corei7"
MACHINE_CPU = sse42 sse41 ssse3 sse3 sse2 sse i686 mmx i586
. elif ${CPUTYPE} == "penryn"
MACHINE_CPU = sse41 ssse3 sse3 sse2 sse i686 mmx i586
@ -204,7 +205,8 @@ MACHINE_CPU = mmx
. endif
MACHINE_CPU += i486
. elif ${MACHINE_CPUARCH} == "amd64"
. if ${CPUTYPE} == "bdver2" || ${CPUTYPE} == "bdver1"
. if ${CPUTYPE} == "bdver3" || ${CPUTYPE} == "bdver2" || \
${CPUTYPE} == "bdver1"
MACHINE_CPU = xop avx sse42 sse41 ssse3 sse4a sse3
. elif ${CPUTYPE} == "btver2"
MACHINE_CPU = avx sse42 sse41 ssse3 sse4a sse3
@ -222,7 +224,7 @@ MACHINE_CPU = k8 3dnow
MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse3
. elif ${CPUTYPE} == "core-avx-i" || ${CPUTYPE} == "corei7-avx"
MACHINE_CPU = avx sse42 sse41 ssse3 sse3
. elif ${CPUTYPE} == "corei7"
. elif ${CPUTYPE} == "slm" || ${CPUTYPE} == "corei7"
MACHINE_CPU = sse42 sse41 ssse3 sse3
. elif ${CPUTYPE} == "penryn"
MACHINE_CPU = sse41 ssse3 sse3