[LLVMbugs] [Bug 5300] New: UNREACHABLE executed at SimpleRegisterCoalescing.cpp:2000!
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Oct 25 08:42:26 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5300
Summary: UNREACHABLE executed at
SimpleRegisterCoalescing.cpp:2000!
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
regehr at john-home:~/volatile/tmp214$ clang -w -O3 small.c
No copies from the RHS?
UNREACHABLE executed at SimpleRegisterCoalescing.cpp:2000!
0 clang-cc 0x090906f8
Stack dump:
0. Program arguments:
/home/regehr/z/tmp/llvm-gcc-r85015-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -O3
-w -fexceptions=0 -fdiagnostics-show-option -o /tmp/cc-8nFvuk.s -x c small.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Simple Register Coalescing' on function '@func_31'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/tmp214$ clang -v
clang version 1.1 (trunk 85015)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/tmp214$ cat small.c
static unsigned char
bar (char _si1, unsigned char _si2)
{
return _si1 && _si1 + _si1 ? _si1 : _si1 * _si2;
}
static unsigned char
foo (long long _si1, unsigned char _si2)
{
return _si2 ? 0 : (_si1 % _si2);
}
unsigned char g_43;
unsigned char *g_133;
unsigned char g_288;
unsigned char g_296;
unsigned char **
func_31 (int **int8p_33, unsigned char **p_34, unsigned char *p_35)
{
unsigned char l_287;
short *l_289 = &g_288;
unsigned char *l_297 = &g_296;
*l_289 = func_36 (&l_287, 0);
*l_297 =
*l_289 < foo (func_36 (&g_133, 0), bar (*l_289, *l_289)) ^ *l_289 >= 1;
}
int
func_36 (int **p_37, unsigned char *p_38, unsigned char **uint32p_40,
unsigned char *p_41)
{
unsigned char l_42 = 0xEBL;
short *l_44 = &g_43;
unsigned char l_270;
unsigned char *l_286 = &l_270;
*l_44 = l_42 <= *l_44;
if (*l_44)
return *l_44;
return *l_286;
}
--
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