<html>
    <head>
      <base href="https://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 --- - Llc crashes if CodeGen/PowerPC/crbit-asm.ll test is compiled with -O1 or -O0" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23778&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=0DIsVfF2n1uFrj75gx9DQMWfuVAkWT9_VUdqC3QDq0o&s=l0n9ReQ6ZZmrL93W8Qq2IAQksOOwukWqOeLIdsKoFkA&e=">23778</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Llc crashes if CodeGen/PowerPC/crbit-asm.ll test is compiled with -O1 or -O0
          </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>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>llvm.mail.list@gmail.com
          </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>The test relies on availability of the CR bits feature and the
PPC::CRBITRCRegClass register class. CRBITRCRegClass is added when the CR bits
feature is on (see PPCTargetLowering constructor), while the CR bits feature
itself is available for -O2 or greater only (see function computeFSAdditions in
lib/Target/PowerPC/PPCTargetMachine.cpp).

Compiling the CodeGen/PowerPC/crbit-asm.ll test with -O0 or -O1 crashes llc.
Llc tries to copy to a register of type i1, which is illegal if CR bits is off.
This signals the assertion "Copying to an illegal type!" in the getCopyToParts
function (lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp).</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>