<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 --- - "Invalid PPC CTR loop" when building FreeBSD libc for PowerPC"
   href="http://llvm.org/bugs/show_bug.cgi?id=22034">22034</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Invalid PPC CTR loop" when building FreeBSD libc for PowerPC
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>chmeeedalf@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>Created <span class=""><a href="attachment.cgi?id=13594" name="attach_13594" title="Source file to compile">attachment 13594</a> <a href="attachment.cgi?id=13594&action=edit" title="Source file to compile">[details]</a></span>
Source file to compile

The attached test case, reduced from the FreeBSD ns_name.c source file, throws
an assertion:

Invalid PPC CTR loop!
UNREACHABLE executed at
/home/chmeee/llvm_git/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:655!
Stack dump:
0.      Program arguments: ./llvm_git/llvm_build/bin/llc -filetype=obj
-relocation-model=pic /tmp/ns_name-223efd.ll 
1.      Running pass 'Function Pass Manager' on module
'/tmp/ns_name-223efd.ll'.
2.      Running pass 'PowerPC CTR Loops Verify' on function '@__ns_name_ntol'

I haven't reduced it any further than down to this function.</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>