зеркало из https://github.com/microsoft/clang-1.git
Enable AVX/AVX2 for Sandy Bridge, Ivy Bridge, and Haswell CPUs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
cfca6b7b79
Коммит
fd93630cce
|
@ -1642,18 +1642,16 @@ void X86TargetInfo::getDefaultFeatures(llvm::StringMap<bool> &Features) const {
|
|||
case CK_Corei7AVX:
|
||||
case CK_CoreAVXi:
|
||||
setFeatureEnabled(Features, "mmx", true);
|
||||
setFeatureEnabled(Features, "sse4", true);
|
||||
setFeatureEnabled(Features, "avx", true);
|
||||
setFeatureEnabled(Features, "aes", true);
|
||||
//setFeatureEnabled(Features, "avx", true);
|
||||
break;
|
||||
case CK_CoreAVX2:
|
||||
setFeatureEnabled(Features, "mmx", true);
|
||||
setFeatureEnabled(Features, "sse4", true);
|
||||
setFeatureEnabled(Features, "avx2", true);
|
||||
setFeatureEnabled(Features, "aes", true);
|
||||
setFeatureEnabled(Features, "lzcnt", true);
|
||||
setFeatureEnabled(Features, "bmi", true);
|
||||
setFeatureEnabled(Features, "bmi2", true);
|
||||
//setFeatureEnabled(Features, "avx2", true);
|
||||
break;
|
||||
case CK_K6:
|
||||
case CK_WinChipC6:
|
||||
|
|
|
@ -372,8 +372,7 @@
|
|||
// RUN: %clang -march=corei7-avx -m32 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_COREI7_AVX_M32
|
||||
// CHECK_COREI7_AVX_M32: #define __AES__ 1
|
||||
// FIXME: AVX is not yet enabled with Clang.
|
||||
// CHECK_COREI7_AVX_M32-NOT: #define __AVX__ 1
|
||||
// CHECK_COREI7_AVX_M32: #define __AVX__ 1
|
||||
// CHECK_COREI7_AVX_M32: #define __MMX__ 1
|
||||
// CHECK_COREI7_AVX_M32: #define __SSE2__ 1
|
||||
// CHECK_COREI7_AVX_M32: #define __SSE3__ 1
|
||||
|
@ -390,8 +389,7 @@
|
|||
// RUN: %clang -march=corei7-avx -m64 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_COREI7_AVX_M64
|
||||
// CHECK_COREI7_AVX_M64: #define __AES__ 1
|
||||
// FIXME: AVX is not yet enabled with Clang.
|
||||
// CHECK_COREI7_AVX_M64-NOT: #define __AVX__ 1
|
||||
// CHECK_COREI7_AVX_M64: #define __AVX__ 1
|
||||
// CHECK_COREI7_AVX_M64: #define __MMX__ 1
|
||||
// CHECK_COREI7_AVX_M64: #define __SSE2_MATH__ 1
|
||||
// CHECK_COREI7_AVX_M64: #define __SSE2__ 1
|
||||
|
@ -412,8 +410,7 @@
|
|||
// RUN: %clang -march=core-avx-i -m32 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_CORE_AVX_I_M32
|
||||
// CHECK_CORE_AVX_I_M32: #define __AES__ 1
|
||||
// FIXME: AVX is not yet enabled with Clang.
|
||||
// CHECK_CORE_AVX_I_M32-NOT: #define __AVX__ 1
|
||||
// CHECK_CORE_AVX_I_M32: #define __AVX__ 1
|
||||
// CHECK_CORE_AVX_I_M32: #define __MMX__ 1
|
||||
// CHECK_CORE_AVX_I_M32: #define __SSE2__ 1
|
||||
// CHECK_CORE_AVX_I_M32: #define __SSE3__ 1
|
||||
|
@ -430,8 +427,7 @@
|
|||
// RUN: %clang -march=core-avx-i -m64 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_CORE_AVX_I_M64
|
||||
// CHECK_CORE_AVX_I_M64: #define __AES__ 1
|
||||
// FIXME: AVX is not yet enabled with Clang.
|
||||
// CHECK_CORE_AVX_I_M64-NOT: #define __AVX__ 1
|
||||
// CHECK_CORE_AVX_I_M64: #define __AVX__ 1
|
||||
// CHECK_CORE_AVX_I_M64: #define __MMX__ 1
|
||||
// CHECK_CORE_AVX_I_M64: #define __SSE2_MATH__ 1
|
||||
// CHECK_CORE_AVX_I_M64: #define __SSE2__ 1
|
||||
|
|
Загрузка…
Ссылка в новой задаче