[LLVMbugs] [Bug 4054] New: ICE: bitwidth too small
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Apr 24 08:57:04 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4054
Summary: ICE: bitwidth too small
Product: new-bugs
Version: unspecified
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
Seen using r69856 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp153$ llvm-gcc -O2 small.c -c -Wall
small.c: In function ‘int80’:
small.c:15: warning: statement with no effect
small.c:15: warning: statement with no effect
cc1: Type.cpp:913: static const llvm::IntegerType*
llvm::IntegerType::get(unsigned int): Assertion `NumBits >= MIN_INT_BITS &&
"bitwidth too small"' failed.
small.c: At top level:
small.c:31: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.
regehr at john-home:~/volatile/tmp153$ cat small.c
typedef int uint32_t;
int safe (int);
int foo (int _ui1, int _ui2)
{
return _ui1 - 1;
}
char g_141;
int int80 (char p_71)
{
char l;
for (l; 1; l)
{
if (1)
{
if (safe (1))
return p_71;
for (p_71 = 1; p_71; p_71 = foo (p_71, 1))
{
}
if (g_141)
p_71 = p_71 & g_141;
else
return 1;
}
}
return 0;
}
--
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