<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>What file/version are you looking at? In llvm tot, split vector does split vector shifts in LegalizeDAG.cpp and in LegalizeVectorTypes.cpp.</div><div><br></div><div>-- Mon Ping</div><div><br></div><div><br><div><div>On Mar 11, 2009, at 11:27 AM, Villmow, Micah wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address">
<o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City">
<o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Fixedsys;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>



<div lang="EN-US" link="blue" vlink="purple">

<div class="Section1"><p class="MsoNormal"><st1:city w:st="on"><st1:place w:st="on"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Split</span></font></st1:place></st1:city><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> vector op
does not currently handle splitting vector based shift operations.<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><u><font size="1" color="fuchsia" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:fuchsia">@@
-7206,11 +7206,14 @@<o:p></o:p></span></font></u></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">     case
ISD::AND:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">     case
ISD::OR:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">     case
ISD::XOR:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">     case
ISD::UREM:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">     case
ISD::SREM:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><s><font size="1" color="red" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:red"><   
case ISD::FREM: {<o:p></o:p></span></font></s></p><p class="MsoNormal" style="text-autospace:none"><font size="1" color="blue" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:blue">->  
case ISD::FREM:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" color="blue" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:blue">->  
case ISD::SHL:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" color="blue" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:blue">->  
case ISD::SRA:<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" color="blue" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys;color:blue">->  
case ISD::SRL:{<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">      
SDValue LL, LH, RL, RH;<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">      
SplitVectorOp(Node->getOperand(0), LL, LH);<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">      
SplitVectorOp(Node->getOperand(1), RL, RH);<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">      
<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys">      
Lo = DAG.getNode(Node->getOpcode(), NewVT_Lo, LL, RL);<o:p></o:p></span></font></p><p class="MsoNormal" style="text-autospace:none"><font size="1" face="Fixedsys"><span style="font-size:9.0pt;font-family:Fixedsys"><o:p> </o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">The following code snippet adds in this support.<o:p></o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Micah Villmow<o:p></o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Systems Engineer<o:p></o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Advanced Technology & Performance<o:p></o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Advanced Micro Devices Inc.<o:p></o:p></span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><ns0:street w:insauthor="Micah Villmow" w:insdate="2009-03-11T11:19:00Z" w:endinsauthor="Micah Villmow" w:endinsdate="2009-03-11T11:19:00Z"><ns0:address w:insauthor="Micah Villmow" w:insdate="2009-03-11T11:19:00Z" w:endinsauthor="Micah Villmow" w:endinsdate="2009-03-11T11:19:00Z">S1-609 One AMD Place</ns0:address></ns0:street></span></font><o:p></o:p></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><ns0:place w:insauthor="Micah Villmow" w:insdate="2009-03-11T11:19:00Z" w:endinsauthor="Micah Villmow" w:endinsdate="2009-03-11T11:19:00Z"><ns0:city w:insauthor="Micah Villmow" w:insdate="2009-03-11T11:19:00Z" w:endinsauthor="Micah Villmow" w:endinsdate="2009-03-11T11:19:00Z"><st1:city w:st="on"><st1:place w:st="on">Sunnyvale</st1:place></st1:city></ns0:city></ns0:place>,
CA. 94085</span></font><o:p></o:p></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">P: 408-749-3966</span></font><o:p></o:p></p><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"> </span></font><font size="2" face="Arial"><span style="font-size:
10.0pt;font-family:Arial"><o:p></o:p></span></font></p><p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>

</div>

</div>


_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></o:smarttagtype></o:smarttagtype></o:smarttagtype></blockquote></div><br></div></body></html>