]> granicus.if.org Git - clang/commitdiff
[Clang] Adding missing feature to goldmont
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Mon, 25 Sep 2017 13:49:32 +0000 (13:49 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Mon, 25 Sep 2017 13:49:32 +0000 (13:49 +0000)
Change-Id: I6c22478d16b8e02ce60dae2f8c80d43bc5ab3a9c

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets/X86.cpp
test/Preprocessor/predefined-arch-macros.c

index 8000b423363330e073df2874320c189fa2b84e85..c1bdf66a8186826752ac0344e76407896e3853cf 100644 (file)
@@ -215,6 +215,7 @@ bool X86TargetInfo::initFeatureMap(
     setFeatureEnabledImpl(Features, "xsaves", true);
     setFeatureEnabledImpl(Features, "clflushopt", true);
     setFeatureEnabledImpl(Features, "mpx", true);
+    setFeatureEnabledImpl(Features, "fsgsbase", true);
     LLVM_FALLTHROUGH;
   case CK_Silvermont:
     setFeatureEnabledImpl(Features, "aes", true);
index 8976f9e8fb27d5dfb05dd75ad63695ec1232f015..dd2a72250b7e757e69e0b30c4534b20b98c89fa7 100644 (file)
 // RUN:   | FileCheck %s -check-prefix=CHECK_GLM_M32
 // CHECK_GLM_M32: #define __AES__ 1
 // CHECK_GLM_M32: #define __CLFLUSHOPT__ 1
+// CHECK_GLM_M32: #define __FSGSBASE__ 1
 // CHECK_GLM_M32: #define __FXSR__ 1
 // CHECK_GLM_M32: #define __MMX__ 1
 // CHECK_GLM_M32: #define __MPX__ 1
 // RUN:   | FileCheck %s -check-prefix=CHECK_GLM_M64
 // CHECK_GLM_M64: #define __AES__ 1
 // CHECK_GLM_M64: #define __CLFLUSHOPT__ 1
+// CHECK_GLM_M64: #define __FSGSBASE__ 1
 // CHECK_GLM_M64: #define __FXSR__ 1
 // CHECK_GLM_M64: #define __MMX__ 1
 // CHECK_GLM_M64: #define __MPX__ 1