<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 --- - Emitting PLD for stack data on ARM Thumb2"
   href="http://llvm.org/bugs/show_bug.cgi?id=17372">17372</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Emitting PLD for stack data on ARM Thumb2
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>weimingz@codeaurora.org
          </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=11281" name="attach_11281" title="test case">attachment 11281</a> <a href="attachment.cgi?id=11281&action=edit" title="test case">[details]</a></span>
test case

Currently, LLVM does not handle t2PLDi12, t2PLDi8 and
    t2PLDs, so an opcode of 0 is returned, which causes compiler crash in
    debug build or missing PLD in release build.

For example, for the given test case:

./Debug+Asserts/bin/llc -march=thumb -mattr=+v7 <
/prj/llvm-arm/home/weimingz/llvm-src/community-tip/prefetch.ll 

    llc:
/local/scratch/llvm-build/community-tip/lib/Target/ARM/InstPrinter/../ARMGenAsmWriter.inc:6119:
void llvm::ARMInstPrinter::printInstruction(const llvm::MCInst*,
llvm::raw_ostream&): Assertion `Bits != 0 && "Cannot print this instruction."'
failed.
0  llc             0x00000000011d2177 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  llc             0x00000000011d23f4
2  llc             0x00000000011d1e2a
3  libpthread.so.0 0x00007f393a3088f0
4  libc.so.6       0x00007f39391aca75 gsignal + 53
5  libc.so.6       0x00007f39391b05c0 abort + 384
6  libc.so.6       0x00007f39391a5941 __assert_fail + 241</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>