forked from OSchip/llvm-project
[X86] Add 'rdrnd' feature to silvermont to match recent gcc bug fix.
gcc recently fixed this bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83546 llvm-svn: 323552
This commit is contained in:
parent
8f324bb1a4
commit
ace5c37c57
|
@ -239,7 +239,6 @@ bool X86TargetInfo::initFeatureMap(
|
|||
|
||||
case CK_Goldmont:
|
||||
setFeatureEnabledImpl(Features, "sha", true);
|
||||
setFeatureEnabledImpl(Features, "rdrnd", true);
|
||||
setFeatureEnabledImpl(Features, "rdseed", true);
|
||||
setFeatureEnabledImpl(Features, "xsave", true);
|
||||
setFeatureEnabledImpl(Features, "xsaveopt", true);
|
||||
|
@ -250,6 +249,7 @@ bool X86TargetInfo::initFeatureMap(
|
|||
setFeatureEnabledImpl(Features, "fsgsbase", true);
|
||||
LLVM_FALLTHROUGH;
|
||||
case CK_Silvermont:
|
||||
setFeatureEnabledImpl(Features, "rdrnd", true);
|
||||
setFeatureEnabledImpl(Features, "aes", true);
|
||||
setFeatureEnabledImpl(Features, "pclmul", true);
|
||||
setFeatureEnabledImpl(Features, "sse4.2", true);
|
||||
|
|
|
@ -1272,6 +1272,7 @@
|
|||
// CHECK_SLM_M32: #define __PCLMUL__ 1
|
||||
// CHECK_SLM_M32: #define __POPCNT__ 1
|
||||
// CHECK_SLM_M32: #define __PRFCHW__ 1
|
||||
// CHECK_SLM_M32: #define __RDRND__ 1
|
||||
// CHECK_SLM_M32: #define __SSE2__ 1
|
||||
// CHECK_SLM_M32: #define __SSE3__ 1
|
||||
// CHECK_SLM_M32: #define __SSE4_1__ 1
|
||||
|
@ -1293,6 +1294,7 @@
|
|||
// CHECK_SLM_M64: #define __PCLMUL__ 1
|
||||
// CHECK_SLM_M64: #define __POPCNT__ 1
|
||||
// CHECK_SLM_M64: #define __PRFCHW__ 1
|
||||
// CHECK_SLM_M64: #define __RDRND__ 1
|
||||
// CHECK_SLM_M64: #define __SSE2_MATH__ 1
|
||||
// CHECK_SLM_M64: #define __SSE2__ 1
|
||||
// CHECK_SLM_M64: #define __SSE3__ 1
|
||||
|
|
Loading…
Reference in New Issue