[PATCH] D72673: [PowerPC] Fix powerpcspe subtarget enablement in llvm backend
Justin Hibbits via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 20:10:05 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG36eedfcb3cea: [PowerPC] Fix powerpcspe subtarget enablement in llvm backend (authored by chmeee).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72673/new/
https://reviews.llvm.org/D72673
Files:
llvm/lib/Target/PowerPC/PPC.td
llvm/lib/Target/PowerPC/PPCSubtarget.cpp
Index: llvm/lib/Target/PowerPC/PPCSubtarget.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -127,6 +127,8 @@
// If cross-compiling with -march=ppc64le without -mcpu
if (TargetTriple.getArch() == Triple::ppc64le)
CPUName = "ppc64le";
+ else if (TargetTriple.getSubArch() == Triple::PPCSubArch_spe)
+ CPUName = "e500";
else
CPUName = "generic";
}
@@ -151,9 +153,6 @@
TargetTriple.isMusl())
SecurePlt = true;
- if (TargetTriple.getSubArch() == Triple::PPCSubArch_spe)
- HasSPE = true;
-
if (HasSPE && IsPPC64)
report_fatal_error( "SPE is only supported for 32-bit targets.\n", false);
if (HasSPE && (HasAltivec || HasQPX || HasVSX || HasFPU))
Index: llvm/lib/Target/PowerPC/PPC.td
===================================================================
--- llvm/lib/Target/PowerPC/PPC.td
+++ llvm/lib/Target/PowerPC/PPC.td
@@ -442,7 +442,7 @@
def : ProcessorModel<"e500", PPCE500Model,
[DirectiveE500,
FeatureICBT, FeatureBookE,
- FeatureISEL, FeatureMFTB]>;
+ FeatureISEL, FeatureMFTB, FeatureSPE]>;
def : ProcessorModel<"e500mc", PPCE500mcModel,
[DirectiveE500mc,
FeatureSTFIWX, FeatureICBT, FeatureBookE,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72673.238163.patch
Type: text/x-patch
Size: 1403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200115/35d8bbe0/attachment.bin>
More information about the llvm-commits
mailing list