forked from OSchip/llvm-project
[X86] Support -march=tigerlake
Support -march=tigerlake for x86. Compare with Icelake Client, It include 4 more new features ,they are avx512vp2intersect, movdiri, movdir64b, shstk. Patch by Xiang Zhang (xiangzhangllvm) Differential Revision: https://reviews.llvm.org/D65840 llvm-svn: 368543
This commit is contained in:
parent
cb5a90fd31
commit
e28cbbd5d4
|
@ -173,6 +173,10 @@ PROC(IcelakeClient, "icelake-client", PROC_64_BIT)
|
||||||
/// Icelake server microarchitecture based processors.
|
/// Icelake server microarchitecture based processors.
|
||||||
PROC(IcelakeServer, "icelake-server", PROC_64_BIT)
|
PROC(IcelakeServer, "icelake-server", PROC_64_BIT)
|
||||||
|
|
||||||
|
/// \name Tigerlake Server
|
||||||
|
/// Tigerlake Server microarchitecture based processors.
|
||||||
|
PROC(Tigerlake, "tigerlake", PROC_64_BIT)
|
||||||
|
|
||||||
/// \name Knights Landing
|
/// \name Knights Landing
|
||||||
/// Knights Landing processor.
|
/// Knights Landing processor.
|
||||||
PROC_WITH_FEAT(KNL, "knl", PROC_64_BIT, FEATURE_AVX512F)
|
PROC_WITH_FEAT(KNL, "knl", PROC_64_BIT, FEATURE_AVX512F)
|
||||||
|
@ -297,6 +301,7 @@ FEATURE(FEATURE_VPCLMULQDQ)
|
||||||
FEATURE(FEATURE_AVX512VNNI)
|
FEATURE(FEATURE_AVX512VNNI)
|
||||||
FEATURE(FEATURE_AVX512BITALG)
|
FEATURE(FEATURE_AVX512BITALG)
|
||||||
FEATURE(FEATURE_AVX512BF16)
|
FEATURE(FEATURE_AVX512BF16)
|
||||||
|
FEATURE(FEATURE_AVX512VP2INTERSECT)
|
||||||
|
|
||||||
|
|
||||||
// FIXME: When commented out features are supported in LLVM, enable them here.
|
// FIXME: When commented out features are supported in LLVM, enable them here.
|
||||||
|
|
|
@ -157,11 +157,20 @@ bool X86TargetInfo::initFeatureMap(
|
||||||
// SkylakeServer cores inherits all SKL features, except SGX
|
// SkylakeServer cores inherits all SKL features, except SGX
|
||||||
goto SkylakeCommon;
|
goto SkylakeCommon;
|
||||||
|
|
||||||
|
case CK_Tigerlake:
|
||||||
|
setFeatureEnabledImpl(Features, "avx512vp2intersect", true);
|
||||||
|
setFeatureEnabledImpl(Features, "movdiri", true);
|
||||||
|
setFeatureEnabledImpl(Features, "movdir64b", true);
|
||||||
|
setFeatureEnabledImpl(Features, "shstk", true);
|
||||||
|
// Tigerlake cores inherits IcelakeClient, except pconfig and wbnoinvd
|
||||||
|
goto IcelakeCommon;
|
||||||
|
|
||||||
case CK_IcelakeServer:
|
case CK_IcelakeServer:
|
||||||
setFeatureEnabledImpl(Features, "pconfig", true);
|
setFeatureEnabledImpl(Features, "pconfig", true);
|
||||||
setFeatureEnabledImpl(Features, "wbnoinvd", true);
|
setFeatureEnabledImpl(Features, "wbnoinvd", true);
|
||||||
LLVM_FALLTHROUGH;
|
LLVM_FALLTHROUGH;
|
||||||
case CK_IcelakeClient:
|
case CK_IcelakeClient:
|
||||||
|
IcelakeCommon:
|
||||||
setFeatureEnabledImpl(Features, "vaes", true);
|
setFeatureEnabledImpl(Features, "vaes", true);
|
||||||
setFeatureEnabledImpl(Features, "gfni", true);
|
setFeatureEnabledImpl(Features, "gfni", true);
|
||||||
setFeatureEnabledImpl(Features, "vpclmulqdq", true);
|
setFeatureEnabledImpl(Features, "vpclmulqdq", true);
|
||||||
|
@ -1000,6 +1009,7 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
|
||||||
case CK_Cannonlake:
|
case CK_Cannonlake:
|
||||||
case CK_IcelakeClient:
|
case CK_IcelakeClient:
|
||||||
case CK_IcelakeServer:
|
case CK_IcelakeServer:
|
||||||
|
case CK_Tigerlake:
|
||||||
// FIXME: Historically, we defined this legacy name, it would be nice to
|
// FIXME: Historically, we defined this legacy name, it would be nice to
|
||||||
// remove it at some point. We've never exposed fine-grained names for
|
// remove it at some point. We've never exposed fine-grained names for
|
||||||
// recent primary x86 CPUs, and we should keep it that way.
|
// recent primary x86 CPUs, and we should keep it that way.
|
||||||
|
|
|
@ -76,6 +76,10 @@
|
||||||
// RUN: | FileCheck %s -check-prefix=icelake-server
|
// RUN: | FileCheck %s -check-prefix=icelake-server
|
||||||
// icelake-server: "-target-cpu" "icelake-server"
|
// icelake-server: "-target-cpu" "icelake-server"
|
||||||
//
|
//
|
||||||
|
// RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=tigerlake 2>&1 \
|
||||||
|
// RUN: | FileCheck %s -check-prefix=tigerlake
|
||||||
|
// tigerlake: "-target-cpu" "tigerlake"
|
||||||
|
//
|
||||||
// RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=lakemont 2>&1 \
|
// RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=lakemont 2>&1 \
|
||||||
// RUN: | FileCheck %s -check-prefix=lakemont
|
// RUN: | FileCheck %s -check-prefix=lakemont
|
||||||
// lakemont: "-target-cpu" "lakemont"
|
// lakemont: "-target-cpu" "lakemont"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
// X86-SAME: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont,
|
// X86-SAME: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont,
|
||||||
// X86-SAME: nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge,
|
// X86-SAME: nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge,
|
||||||
// X86-SAME: core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512,
|
// X86-SAME: core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512,
|
||||||
// X86-SAME: skx, cascadelake, cooperlake, cannonlake, icelake-client, icelake-server, knl, knm, lakemont, k6, k6-2, k6-3,
|
// X86-SAME: skx, cascadelake, cooperlake, cannonlake, icelake-client, icelake-server, tigerlake, knl, knm, lakemont, k6, k6-2, k6-3,
|
||||||
// X86-SAME: athlon, athlon-tbird, athlon-xp, athlon-mp, athlon-4, k8, athlon64,
|
// X86-SAME: athlon, athlon-tbird, athlon-xp, athlon-mp, athlon-4, k8, athlon64,
|
||||||
// X86-SAME: athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10,
|
// X86-SAME: athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10,
|
||||||
// X86-SAME: barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2,
|
// X86-SAME: barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2,
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
// X86_64-SAME: atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere,
|
// X86_64-SAME: atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere,
|
||||||
// X86_64-SAME: sandybridge, corei7-avx, ivybridge, core-avx-i, haswell,
|
// X86_64-SAME: sandybridge, corei7-avx, ivybridge, core-avx-i, haswell,
|
||||||
// X86_64-SAME: core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake,
|
// X86_64-SAME: core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake,
|
||||||
// X86_64-SAME: icelake-client, icelake-server, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3,
|
// X86_64-SAME: icelake-client, icelake-server, tigerlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3,
|
||||||
// X86_64-SAME: athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1,
|
// X86_64-SAME: athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1,
|
||||||
// X86_64-SAME: btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, x86-64
|
// X86_64-SAME: btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, x86-64
|
||||||
|
|
||||||
|
|
|
@ -1517,6 +1517,133 @@
|
||||||
// CHECK_ICX_M64: #define __x86_64 1
|
// CHECK_ICX_M64: #define __x86_64 1
|
||||||
// CHECK_ICX_M64: #define __x86_64__ 1
|
// CHECK_ICX_M64: #define __x86_64__ 1
|
||||||
|
|
||||||
|
// RUN: %clang -march=tigerlake -m32 -E -dM %s -o - 2>&1 \
|
||||||
|
// RUN: -target i386-unknown-linux \
|
||||||
|
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_TGL_M32
|
||||||
|
// CHECK_TGL_M32: #define __AES__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX2__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512BITALG__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512BW__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512CD__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512DQ__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512F__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512IFMA__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VBMI2__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VBMI__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VL__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VNNI__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VP2INTERSECT__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX512VPOPCNTDQ__ 1
|
||||||
|
// CHECK_TGL_M32: #define __AVX__ 1
|
||||||
|
// CHECK_TGL_M32: #define __BMI2__ 1
|
||||||
|
// CHECK_TGL_M32: #define __BMI__ 1
|
||||||
|
// CHECK_TGL_M32: #define __CLFLUSHOPT__ 1
|
||||||
|
// CHECK_TGL_M32: #define __CLWB__ 1
|
||||||
|
// CHECK_TGL_M32: #define __F16C__ 1
|
||||||
|
// CHECK_TGL_M32: #define __FMA__ 1
|
||||||
|
// CHECK_TGL_M32: #define __GFNI__ 1
|
||||||
|
// CHECK_TGL_M32: #define __INVPCID__ 1
|
||||||
|
// CHECK_TGL_M32: #define __LZCNT__ 1
|
||||||
|
// CHECK_TGL_M32: #define __MMX__ 1
|
||||||
|
// CHECK_TGL_M32: #define __MOVBE__ 1
|
||||||
|
// CHECK_TGL_M32: #define __MOVDIR64B__ 1
|
||||||
|
// CHECK_TGL_M32: #define __MOVDIRI__ 1
|
||||||
|
// CHECK_TGL_M32: #define __MPX__ 1
|
||||||
|
// CHECK_TGL_M32: #define __PCLMUL__ 1
|
||||||
|
// CHECK_TGL_M32-NOT: #define __PCONFIG__ 1
|
||||||
|
// CHECK_TGL_M32: #define __PKU__ 1
|
||||||
|
// CHECK_TGL_M32: #define __POPCNT__ 1
|
||||||
|
// CHECK_TGL_M32: #define __PRFCHW__ 1
|
||||||
|
// CHECK_TGL_M32: #define __RDPID__ 1
|
||||||
|
// CHECK_TGL_M32: #define __RDRND__ 1
|
||||||
|
// CHECK_TGL_M32: #define __RDSEED__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SGX__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SHA__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SHSTK__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSE2__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSE3__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSE4_1__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSE4_2__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSE__ 1
|
||||||
|
// CHECK_TGL_M32: #define __SSSE3__ 1
|
||||||
|
// CHECK_TGL_M32: #define __VAES__ 1
|
||||||
|
// CHECK_TGL_M32: #define __VPCLMULQDQ__ 1
|
||||||
|
// CHECK_TGL_M32-NOT: #define __WBNOINVD__ 1
|
||||||
|
// CHECK_TGL_M32: #define __XSAVEC__ 1
|
||||||
|
// CHECK_TGL_M32: #define __XSAVEOPT__ 1
|
||||||
|
// CHECK_TGL_M32: #define __XSAVES__ 1
|
||||||
|
// CHECK_TGL_M32: #define __XSAVE__ 1
|
||||||
|
// CHECK_TGL_M32: #define __corei7 1
|
||||||
|
// CHECK_TGL_M32: #define __corei7__ 1
|
||||||
|
// CHECK_TGL_M32: #define __i386 1
|
||||||
|
// CHECK_TGL_M32: #define __i386__ 1
|
||||||
|
// CHECK_TGL_M32: #define __tune_corei7__ 1
|
||||||
|
// CHECK_TGL_M32: #define i386 1
|
||||||
|
|
||||||
|
// RUN: %clang -march=tigerlake -m64 -E -dM %s -o - 2>&1 \
|
||||||
|
// RUN: -target i386-unknown-linux \
|
||||||
|
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_TGL_M64
|
||||||
|
// CHECK_TGL_M64: #define __AES__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX2__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512BITALG__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512BW__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512CD__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512DQ__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512F__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512IFMA__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VBMI2__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VBMI__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VL__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VNNI__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VP2INTERSECT__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX512VPOPCNTDQ__ 1
|
||||||
|
// CHECK_TGL_M64: #define __AVX__ 1
|
||||||
|
// CHECK_TGL_M64: #define __BMI2__ 1
|
||||||
|
// CHECK_TGL_M64: #define __BMI__ 1
|
||||||
|
// CHECK_TGL_M64: #define __CLFLUSHOPT__ 1
|
||||||
|
// CHECK_TGL_M64: #define __CLWB__ 1
|
||||||
|
// CHECK_TGL_M64: #define __F16C__ 1
|
||||||
|
// CHECK_TGL_M64: #define __FMA__ 1
|
||||||
|
// CHECK_TGL_M64: #define __GFNI__ 1
|
||||||
|
// CHECK_TGL_M64: #define __INVPCID__ 1
|
||||||
|
// CHECK_TGL_M64: #define __LZCNT__ 1
|
||||||
|
// CHECK_TGL_M64: #define __MMX__ 1
|
||||||
|
// CHECK_TGL_M64: #define __MOVBE__ 1
|
||||||
|
// CHECK_TGL_M64: #define __MOVDIR64B__ 1
|
||||||
|
// CHECK_TGL_M64: #define __MOVDIRI__ 1
|
||||||
|
// CHECK_TGL_M64: #define __MPX__ 1
|
||||||
|
// CHECK_TGL_M64: #define __PCLMUL__ 1
|
||||||
|
// CHECK_TGL_M64-NOT: #define __PCONFIG__ 1
|
||||||
|
// CHECK_TGL_M64: #define __PKU__ 1
|
||||||
|
// CHECK_TGL_M64: #define __POPCNT__ 1
|
||||||
|
// CHECK_TGL_M64: #define __PRFCHW__ 1
|
||||||
|
// CHECK_TGL_M64: #define __RDPID__ 1
|
||||||
|
// CHECK_TGL_M64: #define __RDRND__ 1
|
||||||
|
// CHECK_TGL_M64: #define __RDSEED__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SGX__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SHA__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SHSTK__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSE2__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSE3__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSE4_1__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSE4_2__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSE__ 1
|
||||||
|
// CHECK_TGL_M64: #define __SSSE3__ 1
|
||||||
|
// CHECK_TGL_M64: #define __VAES__ 1
|
||||||
|
// CHECK_TGL_M64: #define __VPCLMULQDQ__ 1
|
||||||
|
// CHECK_TGL_M64-NOT: #define __WBNOINVD__ 1
|
||||||
|
// CHECK_TGL_M64: #define __XSAVEC__ 1
|
||||||
|
// CHECK_TGL_M64: #define __XSAVEOPT__ 1
|
||||||
|
// CHECK_TGL_M64: #define __XSAVES__ 1
|
||||||
|
// CHECK_TGL_M64: #define __XSAVE__ 1
|
||||||
|
// CHECK_TGL_M64: #define __amd64 1
|
||||||
|
// CHECK_TGL_M64: #define __amd64__ 1
|
||||||
|
// CHECK_TGL_M64: #define __corei7 1
|
||||||
|
// CHECK_TGL_M64: #define __corei7__ 1
|
||||||
|
// CHECK_TGL_M64: #define __tune_corei7__ 1
|
||||||
|
// CHECK_TGL_M64: #define __x86_64 1
|
||||||
|
// CHECK_TGL_M64: #define __x86_64__ 1
|
||||||
|
|
||||||
// RUN: %clang -march=atom -m32 -E -dM %s -o - 2>&1 \
|
// RUN: %clang -march=atom -m32 -E -dM %s -o - 2>&1 \
|
||||||
// RUN: -target i386-unknown-linux \
|
// RUN: -target i386-unknown-linux \
|
||||||
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_ATOM_M32
|
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_ATOM_M32
|
||||||
|
|
|
@ -112,6 +112,7 @@ X86_CPU_SUBTYPE ("k6-2", AMDPENTIUM_K62)
|
||||||
X86_CPU_SUBTYPE ("k6-3", AMDPENTIUM_K63)
|
X86_CPU_SUBTYPE ("k6-3", AMDPENTIUM_K63)
|
||||||
X86_CPU_SUBTYPE ("geode", AMDPENTIUM_GEODE)
|
X86_CPU_SUBTYPE ("geode", AMDPENTIUM_GEODE)
|
||||||
X86_CPU_SUBTYPE ("cooperlake", INTEL_COREI7_COOPERLAKE)
|
X86_CPU_SUBTYPE ("cooperlake", INTEL_COREI7_COOPERLAKE)
|
||||||
|
X86_CPU_SUBTYPE ("tigerlake", INTEL_COREI7_TIGERLAKE)
|
||||||
#undef X86_CPU_SUBTYPE_COMPAT
|
#undef X86_CPU_SUBTYPE_COMPAT
|
||||||
#undef X86_CPU_SUBTYPE
|
#undef X86_CPU_SUBTYPE
|
||||||
|
|
||||||
|
@ -167,5 +168,6 @@ X86_FEATURE (66, FEATURE_EM64T)
|
||||||
X86_FEATURE (67, FEATURE_CLFLUSHOPT)
|
X86_FEATURE (67, FEATURE_CLFLUSHOPT)
|
||||||
X86_FEATURE (68, FEATURE_SHA)
|
X86_FEATURE (68, FEATURE_SHA)
|
||||||
X86_FEATURE (69, FEATURE_AVX512BF16)
|
X86_FEATURE (69, FEATURE_AVX512BF16)
|
||||||
|
X86_FEATURE (70, FEATURE_AVX512VP2INTERSECT)
|
||||||
#undef X86_FEATURE_COMPAT
|
#undef X86_FEATURE_COMPAT
|
||||||
#undef X86_FEATURE
|
#undef X86_FEATURE
|
||||||
|
|
|
@ -746,6 +746,13 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: // Unknown family 6 CPU, try to guess.
|
default: // Unknown family 6 CPU, try to guess.
|
||||||
|
// TODO detect tigerlake host
|
||||||
|
if (Features3 & (1 << (X86::FEATURE_AVX512VP2INTERSECT - 64))) {
|
||||||
|
*Type = X86::INTEL_COREI7;
|
||||||
|
*Subtype = X86::INTEL_COREI7_TIGERLAKE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (Features & (1 << X86::FEATURE_AVX512VBMI2)) {
|
if (Features & (1 << X86::FEATURE_AVX512VBMI2)) {
|
||||||
*Type = X86::INTEL_COREI7;
|
*Type = X86::INTEL_COREI7;
|
||||||
*Subtype = X86::INTEL_COREI7_ICELAKE_CLIENT;
|
*Subtype = X86::INTEL_COREI7_ICELAKE_CLIENT;
|
||||||
|
@ -1078,6 +1085,8 @@ static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf,
|
||||||
setFeature(X86::FEATURE_AVX5124VNNIW);
|
setFeature(X86::FEATURE_AVX5124VNNIW);
|
||||||
if (HasLeaf7 && ((EDX >> 3) & 1) && HasAVX512Save)
|
if (HasLeaf7 && ((EDX >> 3) & 1) && HasAVX512Save)
|
||||||
setFeature(X86::FEATURE_AVX5124FMAPS);
|
setFeature(X86::FEATURE_AVX5124FMAPS);
|
||||||
|
if (HasLeaf7 && ((EDX >> 8) & 1) && HasAVX512Save)
|
||||||
|
setFeature(X86::FEATURE_AVX512VP2INTERSECT);
|
||||||
|
|
||||||
unsigned MaxExtLevel;
|
unsigned MaxExtLevel;
|
||||||
getX86CpuIDAndInfo(0x80000000, &MaxExtLevel, &EBX, &ECX, &EDX);
|
getX86CpuIDAndInfo(0x80000000, &MaxExtLevel, &EBX, &ECX, &EDX);
|
||||||
|
|
|
@ -666,6 +666,17 @@ def ProcessorFeatures {
|
||||||
list<SubtargetFeature> ICXFeatures =
|
list<SubtargetFeature> ICXFeatures =
|
||||||
!listconcat(ICLInheritableFeatures, ICXSpecificFeatures);
|
!listconcat(ICLInheritableFeatures, ICXSpecificFeatures);
|
||||||
|
|
||||||
|
//Tigerlake
|
||||||
|
list<SubtargetFeature> TGLAdditionalFeatures = [FeatureVP2INTERSECT,
|
||||||
|
FeatureMOVDIRI,
|
||||||
|
FeatureMOVDIR64B,
|
||||||
|
FeatureSHSTK];
|
||||||
|
list<SubtargetFeature> TGLSpecificFeatures = [FeatureHasFastGather];
|
||||||
|
list<SubtargetFeature> TGLInheritableFeatures =
|
||||||
|
!listconcat(TGLAdditionalFeatures ,TGLSpecificFeatures);
|
||||||
|
list<SubtargetFeature> TGLFeatures =
|
||||||
|
!listconcat(ICLFeatures, TGLInheritableFeatures );
|
||||||
|
|
||||||
// Atom
|
// Atom
|
||||||
list<SubtargetFeature> AtomInheritableFeatures = [FeatureX87,
|
list<SubtargetFeature> AtomInheritableFeatures = [FeatureX87,
|
||||||
FeatureCMPXCHG8B,
|
FeatureCMPXCHG8B,
|
||||||
|
@ -1110,6 +1121,8 @@ def : ProcessorModel<"icelake-client", SkylakeServerModel,
|
||||||
ProcessorFeatures.ICLFeatures>;
|
ProcessorFeatures.ICLFeatures>;
|
||||||
def : ProcessorModel<"icelake-server", SkylakeServerModel,
|
def : ProcessorModel<"icelake-server", SkylakeServerModel,
|
||||||
ProcessorFeatures.ICXFeatures>;
|
ProcessorFeatures.ICXFeatures>;
|
||||||
|
def : ProcessorModel<"tigerlake", SkylakeServerModel,
|
||||||
|
ProcessorFeatures.TGLFeatures>;
|
||||||
|
|
||||||
// AMD CPUs.
|
// AMD CPUs.
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=cannonlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=cannonlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=icelake-client 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=icelake-client 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=icelake-server 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=icelake-server 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=tigerlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=atom 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=atom 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=bonnell 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=bonnell 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=silvermont 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=silvermont 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
|
||||||
|
|
Loading…
Reference in New Issue