[LLVMbugs] [Bug 6028] New: APInt assertion failure in interpreter
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jan 13 07:09:42 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6028
Summary: APInt assertion failure in interpreter
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Interpreter
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4046)
--> (http://llvm.org/bugs/attachment.cgi?id=4046)
bitcode file
With the attached .bc file, I get the following assertion failure:
$ lli -force-interpreter s.bc
0
1
2
0
lli: /home/foad/svn/llvm-project/llvm/trunk/lib/Support/APInt.cpp:551: bool
llvm::APInt::slt(const llvm::APInt&) const: Assertion `BitWidth == RHS.BitWidth
&& "Bit widths must be same for comparison"' failed.
0 lli 0x08a59e51
1 lli 0x08a5a41d
2 0xb7f64400 __kernel_sigreturn + 0
3 libc.so.6 0xb7ce2018 abort + 392
4 libc.so.6 0xb7cd95be __assert_fail + 238
5 lli 0x08a1d5c8 llvm::APInt::slt(llvm::APInt const&) const + 76
6 lli 0x0868242b
7 lli 0x0868910e llvm::Interpreter::visitICmpInst(llvm::ICmpInst&) + 828
8 lli 0x0868ea3a llvm::InstVisitor<llvm::Interpreter,
void>::visitICmp(llvm::ICmpInst&) + 36
9 lli 0x0868f0ce llvm::InstVisitor<llvm::Interpreter,
void>::visit(llvm::Instruction&) + 1048
10 lli 0x08689dd0 llvm::Interpreter::run() + 216
11 lli 0x0867f873 llvm::Interpreter::runFunction(llvm::Function*,
std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&) +
189
12 lli 0x086bceff
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::vector<std::string, std::allocator<std::string> > const&, char const*
const*) + 1019
13 lli 0x084c605f main + 2093
14 libc.so.6 0xb7ccb455 __libc_start_main + 229
15 lli 0x084c5161
Stack dump:
0. Program arguments: ./lli -force-interpreter s.bc
Aborted
I'm using a debug build of svn trunk rev 93317 on Debian Linux/x86.
--
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