<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:echristo@gmail.com" title="Eric Christopher <echristo@gmail.com>"> <span class="fn">Eric Christopher</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ppc] wrong code generated for bswap(int32) and followed by store16"
   href="http://bugs.llvm.org/show_bug.cgi?id=32063">bug 32063</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>echristo@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ppc] wrong code generated for bswap(int32) and followed by store16"
   href="http://bugs.llvm.org/show_bug.cgi?id=32063#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ppc] wrong code generated for bswap(int32) and followed by store16"
   href="http://bugs.llvm.org/show_bug.cgi?id=32063">bug 32063</a>
              from <span class="vcard"><a class="email" href="mailto:echristo@gmail.com" title="Eric Christopher <echristo@gmail.com>"> <span class="fn">Eric Christopher</span></a>
</span></b>
        <pre>Believe this is fixed thusly:

commit e225b39cd4cdf3b62d5395ab3a6753a8503dbff7
Author: Guozhi Wei <<a href="mailto:carrot@google.com">carrot@google.com</a>>
Date:   Thu Mar 2 21:07:59 2017 +0000

    [PPC] Fix code generation for bswap(int32) followed by store16

    This patch fixes pr32063.

    Current code in PPCTargetLowering::PerformDAGCombine can transform

    bswap
    store

    into a single PPCISD::STBRX instruction. but it doesn't consider the case
that the operand size of bswap may be larger than store size. When it occurs,
we need 2 modifications,

    1 For the last operand of PPCISD::STBRX, we should not use
DAG.getValueType(N->getOperand(1).getValueType()), instead we should use
cast<StoreSDNode>(N)->getMemoryVT().

    2 Before PPCISD::STBRX, we need to shift the original operand of bswap to
the right side.

    Differential Revision: <a href="https://reviews.llvm.org/D30362">https://reviews.llvm.org/D30362</a>



    git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@296811">https://llvm.org/svn/llvm-project/llvm/trunk@296811</a>
91177308-0d34-0410-b5e6-96231b3b80d8</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>