aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-06-25 22:55:36 -0700
committerCraig Topper <craig.topper@intel.com>2020-06-25 22:55:36 -0700
commita7db230d752be4a104c496eb68a82a5acb4bb35c (patch)
tree1293f977f4e6c2afe4346a9194f993175e48fdbc
parentd4adac48320eb52eb5e4b01b75ad08e37f196df4 (diff)
downloadllvm-a7db230d752be4a104c496eb68a82a5acb4bb35c.zip
llvm-a7db230d752be4a104c496eb68a82a5acb4bb35c.tar.gz
llvm-a7db230d752be4a104c496eb68a82a5acb4bb35c.tar.bz2
[X86] Add CMPXCHG16B feature to amdfam10 in the frontend.
We already have this feature on it in the backend.
-rw-r--r--clang/lib/Basic/Targets/X86.cpp1
-rw-r--r--clang/test/Preprocessor/predefined-arch-macros.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index cc37c8a..184090f 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -336,6 +336,7 @@ SkylakeCommon:
setFeatureEnabledImpl(Features, "popcnt", true);
setFeatureEnabledImpl(Features, "sahf", true);
setFeatureEnabledImpl(Features, "prfchw", true);
+ setFeatureEnabledImpl(Features, "cx16", true);
LLVM_FALLTHROUGH;
case CK_K8SSE3:
setFeatureEnabledImpl(Features, "sse3", true);
diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c
index 4e1535c..91f6a99 100644
--- a/clang/test/Preprocessor/predefined-arch-macros.c
+++ b/clang/test/Preprocessor/predefined-arch-macros.c
@@ -2397,6 +2397,7 @@
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_AMDFAM10_M64
// CHECK_AMDFAM10_M64: #define __3dNOW_A__ 1
// CHECK_AMDFAM10_M64: #define __3dNOW__ 1
+// CHECK_AMDFAM10_M64: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 1
// CHECK_AMDFAM10_M64: #define __LZCNT__ 1
// CHECK_AMDFAM10_M64: #define __MMX__ 1
// CHECK_AMDFAM10_M64: #define __POPCNT__ 1