[LLVMbugs] [Bug 3250] New: ice: shiftAmt <= BitWidth && "Invalid shift amount"
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Dec 21 07:37:05 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3250
Summary: ice: shiftAmt <= BitWidth && "Invalid shift amount"
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 r61306 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp86$ llvm-gcc -O1 small.c
cc1: /home/regehr/llvm/include/llvm/ADT/APInt.h:681: llvm::APInt
llvm::APInt::shl(uint32_t) const: Assertion `shiftAmt <= BitWidth && "Invalid
shift amount"' failed.
small.c:21: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
regehr at john-home:~/volatile/tmp86$ cat small.c
unsigned
safe_sub_func_short_u_u (short _ui1, short _ui2)
{
return -_ui2;
}
unsigned g_115;
unsigned
func_106 (int p_107)
{
if (safe_sub_func_short_u_u
(1,
0 ? 1 : 0 ? 1 : 1 >= sizeof (unsigned) ? 0 ? 1 : +1 : (unsigned) (0 >
9223372036854775807LL
? 1 :
safe_div_
(p_107,
1))
>> (g_115 == 1 == 0 ? -9L : (-9L / (g_115 == 1)))))
func_120 (1);
}
--
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