<html>
    <head>
      <base href="https://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 - Invalid PPC CTR loop with llc on powerpc64le-unknown-linux-gnu"
   href="https://bugs.llvm.org/show_bug.cgi?id=36292">36292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid PPC CTR loop with llc on powerpc64le-unknown-linux-gnu
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>kai@redstar.de
          </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=19837" name="attach_19837" title="LLVM IR demonstring the problem.">attachment 19837</a> <a href="attachment.cgi?id=19837&action=edit" title="LLVM IR demonstring the problem.">[details]</a></span>
LLVM IR demonstring the problem.

The attached file was bugpoint reduced from a unittest of the D library.

Running llc -O2 bugpoint-reduced-simplified.ll results in

Invalid PPC CTR loop!
UNREACHABLE executed at
/home/ubuntu/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:751!
...
Stack dump:
0.      Program arguments: llc -O2 bugpoint-reduced-simplified.ll
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.      Running pass 'PowerPC CTR Loops Verify' on function
'@_D4core8internal7arrayop__T7arrayOpHTAfTfTQfVAyaa1_25VQja1_3dZQBjFNaNbNiNeQBlfQBpZQBt'
Aborted (core dumped)

Happens without -O2, too.</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>