mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 13:08:42 +00:00
[X86] Enable popcnt false dependency breaking on Silvermont and Goldmont.
Silvermont and Goldmont have the same issue on popcnt as Sandy Bridge, Haswell, Broadwell, and Skylake. Believe it is fixed in Goldmont Plus. llvm-svn: 330358
This commit is contained in:
parent
32e62f9c5b
commit
bc895a3afc
@ -563,7 +563,8 @@ class SilvermontProc<string Name> : ProcessorModel<Name, SLMModel, [
|
||||
FeatureSlowIncDec,
|
||||
FeatureSlowPMULLD,
|
||||
FeatureRDRAND,
|
||||
FeatureLAHFSAHF
|
||||
FeatureLAHFSAHF,
|
||||
FeaturePOPCNTFalseDeps
|
||||
]>;
|
||||
def : SilvermontProc<"silvermont">;
|
||||
def : SilvermontProc<"slm">; // Legacy alias.
|
||||
@ -607,7 +608,10 @@ def GLMFeatures : ProcessorFeatures<[], [
|
||||
]>;
|
||||
|
||||
class GoldmontProc<string Name> : ProcModel<Name, SLMModel,
|
||||
GLMFeatures.Value, [ ProcIntelGLM ]>;
|
||||
GLMFeatures.Value, [
|
||||
ProcIntelGLM,
|
||||
FeaturePOPCNTFalseDeps
|
||||
]>;
|
||||
def : GoldmontProc<"goldmont">;
|
||||
|
||||
class GoldmontPlusProc<string Name> : ProcModel<Name, SLMModel,
|
||||
|
@ -1,6 +1,8 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=haswell -mattr=+lzcnt | FileCheck %s --check-prefix=HSW
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=skylake -mattr=+lzcnt | FileCheck %s --check-prefix=SKL
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=skx -mattr=+lzcnt | FileCheck %s --check-prefix=SKL
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=haswell | FileCheck %s --check-prefix=HSW
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=skylake | FileCheck %s --check-prefix=SKL
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=skx | FileCheck %s --check-prefix=SKL
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=silvermont -mattr=+lzcnt,+bmi | FileCheck %s --check-prefix=SKL
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=goldmont -mattr=+lzcnt,+bmi | FileCheck %s --check-prefix=SKL
|
||||
|
||||
; This tests a fix for bugzilla 33869 https://bugs.llvm.org/show_bug.cgi?id=33869
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user