<div dir="ltr">Can you fix the tests too, please?<div>CodeGen/PowerPC/vsx-p8.ll started failing because it was using power8-vector.<br></div><div><br></div><div>Thanks,</div><div><br></div><div> Filipe</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"> F<br></div></div>
<br><div class="gmail_quote">On Mon, Dec 8, 2014 at 3:07 PM, Bill Seurer <span dir="ltr"><<a href="mailto:seurer@linux.vnet.ibm.com" target="_blank">seurer@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: seurer<br>
Date: Mon Dec 8 17:07:12 2014<br>
New Revision: 223709<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=223709&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=223709&view=rev</a><br>
Log:<br>
[PowerPC]Activate FeatureVSX for the Power target<br>
<br>
This change activates FeatureVSX for Power 7 and Power 8 in PPC.td.<br>
<br>
<a href="http://reviews.llvm.org/D6570" target="_blank">http://reviews.llvm.org/D6570</a><br>
<br>
Modified:<br>
llvm/trunk/lib/Target/PowerPC/PPC.td<br>
<br>
Modified: llvm/trunk/lib/Target/PowerPC/PPC.td<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPC.td?rev=223709&r1=223708&r2=223709&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPC.td?rev=223709&r1=223708&r2=223709&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/PowerPC/PPC.td (original)<br>
+++ llvm/trunk/lib/Target/PowerPC/PPC.td Mon Dec 8 17:07:12 2014<br>
@@ -104,9 +104,6 @@ def FeatureQPX : SubtargetFeature<<br>
def FeatureVSX : SubtargetFeature<"vsx","HasVSX", "true",<br>
"Enable VSX instructions",<br>
[FeatureAltivec]>;<br>
-def FeatureP8Vector : SubtargetFeature<"power8-vector", "HasP8Vector", "true",<br>
- "Enable POWER8 vector instructions",<br>
- [FeatureVSX, FeatureAltivec]>;<br>
<br>
def DeprecatedMFTB : SubtargetFeature<"", "DeprecatedMFTB", "true",<br>
"Treat mftb as deprecated">;<br>
@@ -119,6 +116,7 @@ def DeprecatedDST : SubtargetFeature<<br>
// CMPB p6, p6x, p7 cmpb<br>
// DFP p6, p6x, p7 decimal floating-point instructions<br>
// POPCNTB p5 through p7 popcntb and related instructions<br>
+// VSX p7 vector-scalar instruction set<br>
<br>
//===----------------------------------------------------------------------===//<br>
// ABI Selection //<br>
@@ -303,7 +301,7 @@ def : ProcessorModel<"pwr6x", G5Model,<br>
FeatureFPRND, Feature64Bit,<br>
DeprecatedMFTB, DeprecatedDST]>;<br>
def : ProcessorModel<"pwr7", P7Model,<br>
- [DirectivePwr7, FeatureAltivec,<br>
+ [DirectivePwr7, FeatureAltivec, FeatureVSX,<br>
FeatureMFOCRF, FeatureFCPSGN, FeatureFSqrt, FeatureFRE,<br>
FeatureFRES, FeatureFRSQRTE, FeatureFRSQRTES,<br>
FeatureRecipPrec, FeatureSTFIWX, FeatureLFIWAX,<br>
@@ -312,7 +310,7 @@ def : ProcessorModel<"pwr7", P7Model,<br>
Feature64Bit /*, Feature64BitRegs */,<br>
DeprecatedMFTB, DeprecatedDST]>;<br>
def : ProcessorModel<"pwr8", P7Model /* FIXME: Update to P8Model when available */,<br>
- [DirectivePwr8, FeatureAltivec,<br>
+ [DirectivePwr8, FeatureAltivec, FeatureVSX,<br>
FeatureMFOCRF, FeatureFCPSGN, FeatureFSqrt, FeatureFRE,<br>
FeatureFRES, FeatureFRSQRTE, FeatureFRSQRTES,<br>
FeatureRecipPrec, FeatureSTFIWX, FeatureLFIWAX,<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>