FreeBSD Bugzilla – Attachment 173705 Details for
Bug 211864
LLVM is using AVX instructions for CPUTYPE=btver1 (AMD Bobcat)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Import upstream fix to stop using xsave/avx on btver1 CPUs
fix-bug211864-1.diff (text/plain), 1.47 KB, created by
Dimitry Andric
on 2016-08-15 17:21:57 UTC
(
hide
)
Description:
Import upstream fix to stop using xsave/avx on btver1 CPUs
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-08-15 17:21:57 UTC
Size:
1.47 KB
patch
obsolete
>Pull in r262772 from upstream clang trunk (by Simon Pilgrim): > > [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE > > btver1 is a SSSE3/SSE4a only CPU - it doesn't have AVX and doesn't support XSAVE. > > Differential Revision: http://reviews.llvm.org/D17682 > >Pull in r262782 from upstream llvm trunk (by Simon Pilgrim): > > [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE > > btver1 is a SSSE3/SSE4a only CPU - it doesn't have AVX and doesn't support XSAVE. > > Differential Revision: http://reviews.llvm.org/D17683 > >Index: contrib/llvm/lib/Target/X86/X86.td >=================================================================== >--- contrib/llvm/lib/Target/X86/X86.td (revision 304164) >+++ contrib/llvm/lib/Target/X86/X86.td (working copy) >@@ -576,7 +576,6 @@ def : Proc<"btver1", [ > FeaturePRFCHW, > FeatureLZCNT, > FeaturePOPCNT, >- FeatureXSAVE, > FeatureSlowSHLD, > FeatureLAHFSAHF > ]>; >Index: contrib/llvm/tools/clang/lib/Basic/Targets.cpp >=================================================================== >--- contrib/llvm/tools/clang/lib/Basic/Targets.cpp (revision 304164) >+++ contrib/llvm/tools/clang/lib/Basic/Targets.cpp (working copy) >@@ -2731,7 +2731,6 @@ bool X86TargetInfo::initFeatureMap( > setFeatureEnabledImpl(Features, "prfchw", true); > setFeatureEnabledImpl(Features, "cx16", true); > setFeatureEnabledImpl(Features, "fxsr", true); >- setFeatureEnabledImpl(Features, "xsave", true); > break; > case CK_BDVER4: > setFeatureEnabledImpl(Features, "avx2", true);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211864
: 173705