[llvm-bugs] [Bug 47708] New: LLVM 11 ICE regression wrt. inline asm in naked function with param

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 1 20:10:22 PDT 2020


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

            Bug ID: 47708
           Summary: LLVM 11 ICE regression wrt. inline asm in naked
                    function with param
           Product: new-bugs
           Version: 11.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kinke at gmx.net
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

The following IR for ARM compiles fine with LLVM 10, but crashes with LLVM 11
(an rc4+ build):

---
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7m-unknown-none-eabi"

define void @foo(i32** %p_arg) #0 {
  %1 = bitcast i32** %p_arg to i32***
  %2 = load i32**, i32*** %1, align 4
  call void asm sideeffect "ldrh r3, [$0]", "r"(i32** %2)
  unreachable
}

attributes #0 = { naked "frame-pointer"="all" "target-cpu"="cortex-m3" }
---

With enabled assertions:

Can't get register for value!
UNREACHABLE executed at
...\llvm\lib\CodeGen\SelectionDAG\SelectionDAGBuilder.cpp:1609!

-- 
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/20201002/dc718b93/attachment.html>


More information about the llvm-bugs mailing list