[llvm-bugs] [Bug 48863] New: [AVR] Crash upon not supported instruction

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 24 05:43:43 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48863

            Bug ID: 48863
           Summary: [AVR] Crash upon not supported instruction
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: stappers at stappers.nl
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

Created attachment 24414
  --> https://bugs.llvm.org/attachment.cgi?id=24414&action=edit
.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 https://bugs.llvm.org/ 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210124/b5ee0175/attachment.html>


More information about the llvm-bugs mailing list