[LLVMbugs] [Bug 6470] New: Assertion failed: (false && "Ran out of registers during register allocation!")
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 2 14:42:44 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6470
Summary: Assertion failed: (false && "Ran out of registers
during register allocation!")
Product: libraries
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4367)
--> (http://llvm.org/bugs/attachment.cgi?id=4367)
testcase
i386-only, -O1 and above
$ cat assert14.c
int main() {
static char foo[2][8];
char *x=&foo[0][0];
char *y=&foo[1][0];
asm volatile(
"add %1, %%""esi"" \n\t"
:
: "g" (x), "g" (y)
: "%""eax", "%""ecx", "%""edx", "%""esi", "%""edi"
);
}
$ clang -m32 -O1 assert14.c
Assertion failed: (false && "Ran out of registers during register
allocation!"), function assignRegOrStackSlotAtInterval, file
RegAllocLinearScan.cpp, line 1179.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-segfault-freebsd8.0 -S -disable-free -main-file-name assert14.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /usr/local/lib/clang/1.1 -O1 -fmessage-length 157
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ZQW8dV.s
-x c assert14.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Linear Scan Register Allocator' on function '@main'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97589)
Target: x86_64-segfault-freebsd8.0
Thread model: posix
--
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.
More information about the llvm-bugs
mailing list