[PATCH] D43380: [X86] Disable CLWB in Cannon Lake
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 16:19:21 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL325654: [X86] Disable CLWB for Cannon Lake (authored by ctopper, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D43380
Files:
llvm/trunk/lib/Target/X86/X86.td
llvm/trunk/test/CodeGen/X86/clwb.ll
Index: llvm/trunk/test/CodeGen/X86/clwb.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/clwb.ll
+++ llvm/trunk/test/CodeGen/X86/clwb.ll
@@ -1,5 +1,12 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; NOTE: clwb is available in Skylake Server, not available in the newer
+; NOTE: Cannon Lake arch, but available again in the newer Ice Lake arch.
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=clwb | FileCheck %s
+; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=skx | FileCheck %s
+; RUN: not llc < %s -mtriple=i686-apple-darwin -mcpu=cannonlake 2>&1 | FileCheck %s --check-prefix=CNL
+; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=icelake | FileCheck %s
+
+; CNL: LLVM ERROR: Cannot select: intrinsic %llvm.x86.clwb
define void @clwb(i8* %p) nounwind {
; CHECK-LABEL: clwb:
Index: llvm/trunk/lib/Target/X86/X86.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86.td
+++ llvm/trunk/lib/Target/X86/X86.td
@@ -781,7 +781,13 @@
def : SkylakeServerProc<"skylake-avx512">;
def : SkylakeServerProc<"skx">; // Legacy alias.
-def CNLFeatures : ProcessorFeatures<SKXFeatures.Value, [
+def CNLFeatures : ProcessorFeatures<SKLFeatures.Value, [
+ FeatureAVX512,
+ FeatureCDI,
+ FeatureDQI,
+ FeatureBWI,
+ FeatureVLX,
+ FeaturePKU,
FeatureVBMI,
FeatureIFMA,
FeatureSHA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43380.135165.patch
Type: text/x-patch
Size: 1430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180221/5a029cfd/attachment.bin>
More information about the llvm-commits
mailing list