2 ; RUN: llvm-as < %s | llc | grep "label" | count 8
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-f80:32:32-v64:64:64-v128:128:128-a0:0:64"
5 target triple = "i686-pc-linux-gnu"
6 %llvm.dbg.anchor.type = type { i32, i32 }
7 %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
8 %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8* }
9 %llvm.dbg.compositetype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }*, { }* }
10 %llvm.dbg.derivedtype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }* }
11 %llvm.dbg.global_variable.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1, { }* }
12 %llvm.dbg.subprogram.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1 }
13 %llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }* }
14 @llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 17 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1]
15 @llvm.dbg.global_variables = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 52 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=0]
16 @llvm.dbg.subprograms = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 46 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1]
17 @.str = internal constant [17 x i8] c"deaddebuglabel.d\00", section "llvm.metadata" ; <[17 x i8]*> [#uses=1]
18 @.str1 = internal constant [50 x i8] c"/home/kamm/eigenes/projekte/llvmdc/llvmdc/mytests\00", section "llvm.metadata" ; <[50 x i8]*> [#uses=1]
19 @.str2 = internal constant [48 x i8] c"LLVMDC (http://www.dsource.org/projects/llvmdc)\00", section "llvm.metadata" ; <[48 x i8]*> [#uses=1]
20 @llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type {
22 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*),
24 i8* getelementptr ([17 x i8]* @.str, i32 0, i32 0),
25 i8* getelementptr ([50 x i8]* @.str1, i32 0, i32 0),
26 i8* getelementptr ([48 x i8]* @.str2, i32 0, i32 0) }, section "llvm.metadata" ; <%llvm.dbg.compile_unit.type*> [#uses=1]
27 @.str5 = internal constant [20 x i8] c"deaddebuglabel.main\00", section "llvm.metadata" ; <[20 x i8]*> [#uses=1]
28 @.str6 = internal constant [5 x i8] c"main\00", section "llvm.metadata" ; <[5 x i8]*> [#uses=1]
29 @llvm.dbg.subprogram7 = internal constant %llvm.dbg.subprogram.type {
31 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.subprograms to { }*),
32 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
33 i8* getelementptr ([20 x i8]* @.str5, i32 0, i32 0),
34 i8* getelementptr ([20 x i8]* @.str5, i32 0, i32 0),
35 i8* getelementptr ([5 x i8]* @.str6, i32 0, i32 0),
36 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
40 i1 true }, section "llvm.metadata" ; <%llvm.dbg.subprogram.type*> [#uses=1]
42 declare void @llvm.dbg.func.start({ }*) nounwind
44 declare void @llvm.dbg.stoppoint(i32, i32, { }*) nounwind
46 declare void @llvm.dbg.region.end({ }*) nounwind
48 define fastcc i32 @main() {
50 call void @llvm.dbg.func.start( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram7 to { }*) )
51 br i1 true, label %reachable, label %unreachable
53 reachable: ; preds = %entry.main
54 call void @llvm.dbg.region.end( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram7 to { }*) )
57 unreachable: ; preds = %entry.main
58 call void @llvm.dbg.stoppoint( i32 7, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
59 call void @llvm.dbg.region.end( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram7 to { }*) )