From: Michael Zuckerman Date: Mon, 25 Sep 2017 13:49:32 +0000 (+0000) Subject: [Clang] Adding missing feature to goldmont X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d3c5c33049210f9b74e47ee3cbc03629b108409;p=clang [Clang] Adding missing feature to goldmont Change-Id: I6c22478d16b8e02ce60dae2f8c80d43bc5ab3a9c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets/X86.cpp b/lib/Basic/Targets/X86.cpp index 8000b42336..c1bdf66a81 100644 --- a/lib/Basic/Targets/X86.cpp +++ b/lib/Basic/Targets/X86.cpp @@ -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); diff --git a/test/Preprocessor/predefined-arch-macros.c b/test/Preprocessor/predefined-arch-macros.c index 8976f9e8fb..dd2a72250b 100644 --- a/test/Preprocessor/predefined-arch-macros.c +++ b/test/Preprocessor/predefined-arch-macros.c @@ -991,6 +991,7 @@ // 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 @@ -1030,6 +1031,7 @@ // 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