<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - r29 is used before being saved"
   href="http://bugs.llvm.org/show_bug.cgi?id=32292">32292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>r29 is used before being saved
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>timshen91@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18104" name="attach_18104" title="Preprocessed adler32.c from zlib">attachment 18104</a> <a href="attachment.cgi?id=18104&action=edit" title="Preprocessed adler32.c from zlib">[details]</a></span>
Preprocessed adler32.c from zlib

When compiling adler32 in zlib, in the produced assembly:

~ % ~/sandbox/llvm/bin/clang -O2 -target powerpc64le-linux-gnu -S adler32.pre.c
-o - | grep '\b29\b'
        li 29, 0
        ori 5, 29, 65521
        std 29, -24(1)                  # 8-byte Folded Spill
        sub      29, 6, 0
        rldicl 29, 29, 63, 1
        add 0, 29, 0
        ld 29, -24(1)                   # 8-byte Folded Reload

"li 29, 0" is not dominated by "std 29, -24(1)". r29 is callee-saved, and this
code clobbers r29's original value.</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>