[LLVMbugs] [Bug 4974] New: Assertion failed: (InReg && "Value not in map!")
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Sep 13 22:15:39 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4974
Summary: Assertion failed: (InReg && "Value not in map!")
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: evan.cheng at apple.com, llvmbugs at cs.uiuc.edu,
bob.wilson at apple.com
ddunbar at giles:tmp$ cat t.ll
; ModuleID = 'inputs/test.2.b.c'
target datalayout =
"e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32"
target triple = "thumbv7-apple-darwin9.3.0"
%0 = type <{ [0 x i32] }>
%struct.T0 = type { }
@.str = private constant [25 x i8] c"fn2: testing arguments.\0A\00" ; <[25 x
i8]*> [#uses=1]
@T0_values = internal global [1 x %struct.T0] zeroinitializer, align 1 ; <[1 x
%struct.T0]*> [#uses=2]
define arm_apcscc void @test_fn2() nounwind {
entry:
%agg.tmp = alloca %struct.T0 ; <%struct.T0*> [#uses=2]
%call = call arm_apcscc i32 (i8*, ...)* @printf(i8* getelementptr inbounds
([25 x i8]* @.str, i32 0, i32 0)) ; <i32> [#uses=0]
%tmp = bitcast %struct.T0* %agg.tmp to i8* ; <i8*> [#uses=1]
call void @llvm.memcpy.i32(i8* %tmp, i8* bitcast ([1 x %struct.T0]*
@T0_values to i8*), i32 0, i32 1)
%0 = bitcast %struct.T0* %agg.tmp to %0* ; <%0*> [#uses=1]
%1 = load %0* %0, align 1 ; <%0> [#uses=1]
call arm_apcscc void @fn2(%0 %1)
ret void
}
declare arm_apcscc i32 @printf(i8*, ...)
declare arm_apcscc void @fn2(%0)
declare void @llvm.memcpy.i32(i8* nocapture, i8* nocapture, i32, i32) nounwind
ddunbar at giles:tmp$ llc < t.ll
.syntax unified
Assertion failed: (InReg && "Value not in map!"), function getValue, file
/Volumes/Data/Users/ddunbar/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp,
line 933.
0 llc 0x0000000100b73187 PrintStackTrace(void*) + 38
1 llc 0x0000000100b73715 SignalHandler(int) + 336
2 libSystem.B.dylib 0x00007fff8726214a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff00000000 _sigtramp + 2027544272
4 libSystem.B.dylib 0x00007fff872de104 __pthread_markcancel + 0
5 llc 0x00000001007a4d4e
llvm::SelectionDAGLowering::getValue(llvm::Value const*) + 4080
6 llc 0x00000001007a9bb0
llvm::SelectionDAGLowering::LowerCallTo(llvm::CallSite, llvm::SDValue, bool,
llvm::MachineBasicBlock*) + 304
7 llc 0x00000001007baba9
llvm::SelectionDAGLowering::visitCall(llvm::CallInst&) + 3167
8 llc 0x00000001007c676a
llvm::SelectionDAGLowering::visit(unsigned int, llvm::User&) + 1242
9 llc 0x00000001007c682e
llvm::SelectionDAGLowering::visit(llvm::Instruction&) + 44
10 llc 0x00000001007dffb8
llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator<llvm::Instruction>,
llvm::ilist_iterator<llvm::Instruction>) + 96
11 llc 0x00000001007e0b8b
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 2439
12 llc 0x00000001007e1a30
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 982
13 llc 0x00000001008a8a59
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
14 llc 0x0000000100af229b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 341
15 llc 0x0000000100af2889
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
16 llc 0x0000000100af2a38
llvm::FunctionPassManager::run(llvm::Function&) + 112
17 llc 0x000000010002f458 main + 3233
18 llc 0x000000010002e0a8 start + 52
Stack dump:
0. Program arguments: llc
1. Running pass 'ARM Instruction Selection' on function '@test_fn2'
Abort trap
--
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