forked from OSchip/llvm-project
[X86] Add 'cooperlake' and 'tigerlake' to __builtin_cpu_is.
Cooperlake can be detect by compiler-rt now, but not libgcc yet. Tigerlake can't be detected by either. Both names are accepted by gcc. Hopefully the detection code will be in place soon.
This commit is contained in:
parent
0e6c9316d4
commit
42c176c328
|
@ -101,6 +101,7 @@ void verifycpustrings() {
|
||||||
(void)__builtin_cpu_is("btver2");
|
(void)__builtin_cpu_is("btver2");
|
||||||
(void)__builtin_cpu_is("cannonlake");
|
(void)__builtin_cpu_is("cannonlake");
|
||||||
(void)__builtin_cpu_is("cascadelake");
|
(void)__builtin_cpu_is("cascadelake");
|
||||||
|
(void)__builtin_cpu_is("cooperlake");
|
||||||
(void)__builtin_cpu_is("core2");
|
(void)__builtin_cpu_is("core2");
|
||||||
(void)__builtin_cpu_is("corei7");
|
(void)__builtin_cpu_is("corei7");
|
||||||
(void)__builtin_cpu_is("goldmont");
|
(void)__builtin_cpu_is("goldmont");
|
||||||
|
@ -120,6 +121,7 @@ void verifycpustrings() {
|
||||||
(void)__builtin_cpu_is("skylake");
|
(void)__builtin_cpu_is("skylake");
|
||||||
(void)__builtin_cpu_is("skylake-avx512");
|
(void)__builtin_cpu_is("skylake-avx512");
|
||||||
(void)__builtin_cpu_is("slm");
|
(void)__builtin_cpu_is("slm");
|
||||||
|
(void)__builtin_cpu_is("tigerlake");
|
||||||
(void)__builtin_cpu_is("tremont");
|
(void)__builtin_cpu_is("tremont");
|
||||||
(void)__builtin_cpu_is("westmere");
|
(void)__builtin_cpu_is("westmere");
|
||||||
(void)__builtin_cpu_is("znver1");
|
(void)__builtin_cpu_is("znver1");
|
||||||
|
|
|
@ -110,6 +110,8 @@ X86_CPU_SUBTYPE_COMPAT("icelake-client", INTEL_COREI7_ICELAKE_CLIENT, "icelake-c
|
||||||
X86_CPU_SUBTYPE_COMPAT("icelake-server", INTEL_COREI7_ICELAKE_SERVER, "icelake-server")
|
X86_CPU_SUBTYPE_COMPAT("icelake-server", INTEL_COREI7_ICELAKE_SERVER, "icelake-server")
|
||||||
X86_CPU_SUBTYPE_COMPAT("znver2", AMDFAM17H_ZNVER2, "znver2")
|
X86_CPU_SUBTYPE_COMPAT("znver2", AMDFAM17H_ZNVER2, "znver2")
|
||||||
X86_CPU_SUBTYPE_COMPAT("cascadelake", INTEL_COREI7_CASCADELAKE, "cascadelake")
|
X86_CPU_SUBTYPE_COMPAT("cascadelake", INTEL_COREI7_CASCADELAKE, "cascadelake")
|
||||||
|
X86_CPU_SUBTYPE_COMPAT("tigerlake", INTEL_COREI7_TIGERLAKE, "tigerlake")
|
||||||
|
X86_CPU_SUBTYPE_COMPAT("cooperlake", INTEL_COREI7_COOPERLAKE, "cooperlake")
|
||||||
// Entries below this are not in libgcc/compiler-rt.
|
// Entries below this are not in libgcc/compiler-rt.
|
||||||
X86_CPU_SUBTYPE ("core2", INTEL_CORE2_65)
|
X86_CPU_SUBTYPE ("core2", INTEL_CORE2_65)
|
||||||
X86_CPU_SUBTYPE ("penryn", INTEL_CORE2_45)
|
X86_CPU_SUBTYPE ("penryn", INTEL_CORE2_45)
|
||||||
|
@ -117,8 +119,6 @@ X86_CPU_SUBTYPE ("k6", AMDPENTIUM_K6)
|
||||||
X86_CPU_SUBTYPE ("k6-2", AMDPENTIUM_K62)
|
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 ("tigerlake", INTEL_COREI7_TIGERLAKE)
|
|
||||||
#undef X86_CPU_SUBTYPE_COMPAT
|
#undef X86_CPU_SUBTYPE_COMPAT
|
||||||
#undef X86_CPU_SUBTYPE
|
#undef X86_CPU_SUBTYPE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue