http://llvm.org/bugs/show_bug.cgi?id=14787
Bug #: 14787
Summary: inline asm triggers "Instruction uses an allocated
register" in fast register allocator
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 9799
--> http://llvm.org/bugs/attachment.cgi?id=9799
bugpoint reduced test case
This code, which compiles without issue using the regular register allocator,
asserts with the fast register allocator.
define void @Kernel_GetAXUCR0() nounwind inlinehint alwaysinline {
entry:
%0 = call { i64, i64 } asm sideeffect "sc",
"={r0},={r3},{r0},~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11},~{r12},~{cr0},~{memory}"(i64
undef) nounwind, !srcloc !0
ret void
}
Instruction uses an allocated register
UNREACHABLE executed at
/src/llvm-trunk-writable/lib/CodeGen/RegAllocFast.cpp:351!
Test case attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs