[LLVMbugs] [Bug 4684] New: Unknown loc info!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 4 20:25:54 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4684

           Summary: Unknown loc info!
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: wendling at apple.com
                CC: llvmbugs at cs.uiuc.edu


$cat foo.ll
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-apple-darwin9.8"

declare i64 @func2(<1 x i64>)

define void @func1(i32* %dest, i32 %length, i32 %src, i32 %const_alpha) {
entry:
        br i1 undef, label %bb, label %bb6

bb:             ; preds = %entry
        br label %bb4

bb3:            ; preds = %bb4
        %0 = call i64 @func2(<1 x i64> undef)
        br label %bb4

bb4:            ; preds = %bb3, %bb
        br i1 undef, label %bb3, label %bb9

bb6:            ; preds = %entry
        unreachable

bb9:            ; preds = %bb4
        ret void
}

$ llvm-as < foo.ll | llc -O0 -mattr=+mmx
Unknown loc info!
UNREACHABLE executed at
/Users/void/llvm/llvm.src/lib/Target/X86/X86FastISel.cpp:1322!
0   llc               0x00a70a50 llvm::sys::SetInterruptFunction(void (*)()) +
82
1   llc               0x00a70e3f llvm::sys::SetInterruptFunction(void (*)()) +
1089
2   libSystem.B.dylib 0x91bf62bb _sigtramp + 43
3   libSystem.B.dylib 0xffffffff _sigtramp + 1849728367
4   libSystem.B.dylib 0x91c6a23a raise + 26
5   libSystem.B.dylib 0x91c76679 abort + 73
6   llc               0x00a522f7 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 201
7   llc               0x004442c8 (anonymous
namespace)::X86FastISel::X86SelectCall(llvm::Instruction*) + 2274
8   llc               0x004453ff (anonymous
namespace)::X86FastISel::TargetSelectInstruction(llvm::Instruction*) + 439
9   llc               0x00709b67
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 1495
10  llc               0x0070a22d
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 903
11  llc               0x007cc2b1
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 77
12  llc               0x009e90b8
llvm::FPPassManager::runOnFunction(llvm::Function&) + 304
13  llc               0x009e9328
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 112
14  llc               0x009e943c
llvm::FunctionPassManager::run(llvm::Function&) + 130
15  llc               0x000033ba main + 3664
16  llc               0x00001f36 start + 54
Stack dump:
0.      Program arguments: llc -O0 -mattr=+mmx 
1.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@func1'
cat foo.ll
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