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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs