forked from OSchip/llvm-project
[X86] Set __corei7__ preprocessor defines for skylake server and cannonlake.
This is the resolution we came to in D38824. llvm-svn: 318616
This commit is contained in:
parent
9bd566f8c8
commit
222c1725cd
|
@ -836,16 +836,13 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
|
|||
case CK_Haswell:
|
||||
case CK_Broadwell:
|
||||
case CK_SkylakeClient:
|
||||
case CK_SkylakeServer:
|
||||
case CK_Cannonlake:
|
||||
// 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
|
||||
// recent primary x86 CPUs, and we should keep it that way.
|
||||
defineCPUMacros(Builder, "corei7");
|
||||
break;
|
||||
case CK_SkylakeServer:
|
||||
defineCPUMacros(Builder, "skx");
|
||||
break;
|
||||
case CK_Cannonlake:
|
||||
break;
|
||||
case CK_KNL:
|
||||
defineCPUMacros(Builder, "knl");
|
||||
break;
|
||||
|
|
|
@ -892,11 +892,11 @@
|
|||
// CHECK_SKX_M32: #define __XSAVEOPT__ 1
|
||||
// CHECK_SKX_M32: #define __XSAVES__ 1
|
||||
// CHECK_SKX_M32: #define __XSAVE__ 1
|
||||
// CHECK_SKX_M32: #define __corei7 1
|
||||
// CHECK_SKX_M32: #define __corei7__ 1
|
||||
// CHECK_SKX_M32: #define __i386 1
|
||||
// CHECK_SKX_M32: #define __i386__ 1
|
||||
// CHECK_SKX_M32: #define __skx 1
|
||||
// CHECK_SKX_M32: #define __skx__ 1
|
||||
// CHECK_SKX_M32: #define __tune_skx__ 1
|
||||
// CHECK_SKX_M32: #define __tune_corei7__ 1
|
||||
// CHECK_SKX_M32: #define i386 1
|
||||
|
||||
// RUN: %clang -march=skylake-avx512 -m64 -E -dM %s -o - 2>&1 \
|
||||
|
@ -938,9 +938,9 @@
|
|||
// CHECK_SKX_M64: #define __XSAVE__ 1
|
||||
// CHECK_SKX_M64: #define __amd64 1
|
||||
// CHECK_SKX_M64: #define __amd64__ 1
|
||||
// CHECK_SKX_M64: #define __skx 1
|
||||
// CHECK_SKX_M64: #define __skx__ 1
|
||||
// CHECK_SKX_M64: #define __tune_skx__ 1
|
||||
// CHECK_SKX_M64: #define __corei7 1
|
||||
// CHECK_SKX_M64: #define __corei7__ 1
|
||||
// CHECK_SKX_M64: #define __tune_corei7__ 1
|
||||
// CHECK_SKX_M64: #define __x86_64 1
|
||||
// CHECK_SKX_M64: #define __x86_64__ 1
|
||||
//
|
||||
|
@ -981,8 +981,11 @@
|
|||
// CHECK_CNL_M32: #define __XSAVEOPT__ 1
|
||||
// CHECK_CNL_M32: #define __XSAVES__ 1
|
||||
// CHECK_CNL_M32: #define __XSAVE__ 1
|
||||
// CHECK_CNL_M32: #define __corei7 1
|
||||
// CHECK_CNL_M32: #define __corei7__ 1
|
||||
// CHECK_CNL_M32: #define __i386 1
|
||||
// CHECK_CNL_M32: #define __i386__ 1
|
||||
// CHECK_CNL_M32: #define __tune_corei7__ 1
|
||||
// CHECK_CNL_M32: #define i386 1
|
||||
//
|
||||
// RUN: %clang -march=cannonlake -m64 -E -dM %s -o - 2>&1 \
|
||||
|
@ -1024,6 +1027,9 @@
|
|||
// CHECK_CNL_M64: #define __XSAVE__ 1
|
||||
// CHECK_CNL_M64: #define __amd64 1
|
||||
// CHECK_CNL_M64: #define __amd64__ 1
|
||||
// CHECK_CNL_M64: #define __corei7 1
|
||||
// CHECK_CNL_M64: #define __corei7__ 1
|
||||
// CHECK_CNL_M64: #define __tune_corei7__ 1
|
||||
// CHECK_CNL_M64: #define __x86_64 1
|
||||
// CHECK_CNL_M64: #define __x86_64__ 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue