[LLVMbugs] [Bug 4121] New: Assertion `it != mi2iMap_.end() && "Invalid instruction!"' failed.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri May 1 19:18:49 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4121
Summary: Assertion `it != mi2iMap_.end() && "Invalid
instruction!"' failed.
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 r70531 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp156$ llvm-gcc -O2 small.c
small.c: In function ‘func_30’:
small.c:37: warning: assignment makes integer from pointer without a cast
cc1:
/home/regehr/z/tmp/llvm-r70531/include/llvm/CodeGen/LiveIntervalAnalysis.h:209:
unsigned int llvm::LiveIntervals::getInstructionIndex(llvm::MachineInstr*)
const: Assertion `it != mi2iMap_.end() && "Invalid instruction!"' failed.
small.c: At top level:
small.c:40: 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/tmp156$ cat small.c
char safe_add_func_int8_t_s_s (char _si1, char _si2)
{
return _si1 > 0 && 0 > 127 - _si2 && -128 - _si2 ? : 1 + _si2;
}
short safe_sub_func_int16_t_s_s (short _si1, short _si2)
{
return _si1 << 1 * 8 - 1 - _si2 < 0 ? _si1 : _si1 - _si2;
}
char safe_mod_func_uint8_t_u_u (char _ui1, char _ui2)
{
return _ui2 ? : (_ui1 % _ui2);
}
char safe_lshift_func_uint8_t_u_s (char _left, int _right)
{
return _right >= 1 * 8 || 1 >> _right ? : 1 << _right;
}
int uint8;
char g_51;
char g_109;
int g_159;
char func_30 (int p_31, char p_32, char p_33, char p_34)
{
char l_52;
char l;
if (func_30
(1,
safe_add_func_int8_t_s_s (safe_mod_func_uint8_t_u_u
(safe_lshift_func_uint8_t_u_s (l_52, g_109),
safe_sub_func_int16_t_s_s (g_159, 1)),
g_51), 1, 1))
uint8;
for (1; 1; l = safe_sub_func_int16_t_s_s)
{
}
}
--
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