<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 - [AVR] Crash upon not supported instruction"
   href="https://bugs.llvm.org/show_bug.cgi?id=48863">48863</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AVR] Crash upon not supported instruction
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stappers@stappers.nl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24414" name="attach_24414" title=".ll script for reproducing the problem">attachment 24414</a> <a href="attachment.cgi?id=24414&action=edit" title=".ll script for reproducing the problem">[details]</a></span>
.ll script for reproducing the problem

Preamble: Bear with me, I'm not completely comfortable with filling this issue.
It is because a mix of making a first impression (first time report here) and
the idea of loosing a reputation  :-/ 


Intro:  Goal is getting AVR executable from source code written in Rust



I and others are encountering:

LLVM ERROR: Not supported instr: <MCInst 258 <MCOperand Reg:1> <MCOperand
Imm:15> <MCOperand Reg:40>>
error: could not compile `compiler_builtins`



Chasing that error led to a minimal reproducable `broken.ll` script, find it
attached.

Running

  llc -filetype=obj broken.ll

yields

  LLVM ERROR: Not supported instr: <MCInst 258 <MCOperand Reg:1> <MCOperand
Imm:15> <MCOperand Reg:55>>
  PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.


Partial backtrace:

   #2 0x00007f0de46ca465 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xbd1465)
   #3 0x00007f0de3aeb140 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
   #4 0x00007f0de3622ce1 raise ./signal/../sysdeps/unix/sysv/linux/raise.c:51:1
   #5 0x00007f0de360c537 abort ./stdlib/abort.c:81:7
   #6 0x00007f0de4619d68 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xb20d68)
   #7 0x00007f0de4619d87 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xb20d87)
   #8 0x00007f0de61566f5 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x265d6f5)
   #9 0x00007f0de6155bd2 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x265cbd2)


Full backtrace will be attached in a next comment.</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>