From 6a0bbb84cef28ed642a730e55c52447b8c870647 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 11 Dec 2022 12:28:22 +0000 Subject: [PATCH] [X86] RDRAND is a Goldmont feature, not Silvermont --- llvm/lib/Target/X86/X86.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td index 9e2e2ce..c36c241 100644 --- a/llvm/lib/Target/X86/X86.td +++ b/llvm/lib/Target/X86/X86.td @@ -976,8 +976,7 @@ def ProcessorFeatures { FeatureCRC32, FeaturePOPCNT, FeaturePCLMUL, - FeaturePRFCHW, - FeatureRDRAND]; + FeaturePRFCHW]; list SLMTuning = [TuningUseSLMArithCosts, TuningSlowTwoMemOps, TuningSlowLEA, @@ -994,6 +993,7 @@ def ProcessorFeatures { // Goldmont list GLMAdditionalFeatures = [FeatureAES, FeatureSHA, + FeatureRDRAND, FeatureRDSEED, FeatureXSAVE, FeatureXSAVEOPT, -- 2.7.4