<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - [PPC64] Wrong register generated for inline assembler"
   href="http://llvm.org/bugs/show_bug.cgi?id=21443">21443</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PPC64] Wrong register generated for inline assembler
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>kai@redstar.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13270" name="attach_13270" title=".ll file demonstrating the bug">attachment 13270</a> <a href="attachment.cgi?id=13270&action=edit" title=".ll file demonstrating the bug">[details]</a></span>
.ll file demonstrating the bug

The attached file ppc_inline.ll works fine if compiled with -O0 but not with a
higher optimization level. Root cause is that a std 23, 0(0) is generated which
causes a segmentation fault.

The original source is part of the D runtime library, see here:
<a href="https://github.com/ldc-developers/druntime/blob/ldc/src/core/thread.d#L2148">https://github.com/ldc-developers/druntime/blob/ldc/src/core/thread.d#L2148</a>

The purpose of the code is to store all nonvolatile GPRs on the stack to enable
the garbage collector to scan the register values.</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>