llvm.org GIT mirror llvm / fc242bf
Remove dead test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97474 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 9 years ago
1 changed file(s) with 0 addition(s) and 147 deletion(s). Raw diff Collapse all Expand all
+0
-147
test/DebugInfo/funccall.ll less more
None ;; RUN: llc < %s
1 %llvm.dbg.anchor.type = type { i32, i32 }
2 %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
3 %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8* }
4 %llvm.dbg.global_variable.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1, { }* }
5 %llvm.dbg.subprogram.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1 }
6 %llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }* }
7 @llvm.dbg.subprograms = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 46 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1]
8 @llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 17 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1]
9 @llvm.dbg.global_variables = linkonce constant %llvm.dbg.anchor.type { i32 393216, i32 52 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1]
10 @llvm.dbg.subprogram = internal constant %llvm.dbg.subprogram.type {
11 i32 393262,
12 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.subprograms to { }*),
13 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
14 i8* getelementptr ([4 x i8]* @str, i32 0, i32 0),
15 i8* getelementptr ([4 x i8]* @str, i32 0, i32 0),
16 i8* null,
17 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
18 i32 4,
19 { }* null,
20 i1 false,
21 i1 true }, section "llvm.metadata" ; <%llvm.dbg.subprogram.type*> [#uses=1]
22 @str = internal constant [4 x i8] c"foo\00", section "llvm.metadata" ; <[4 x i8]*> [#uses=1]
23 @llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type {
24 i32 393233,
25 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*),
26 i32 1,
27 i8* getelementptr ([11 x i8]* @str1, i32 0, i32 0),
28 i8* getelementptr ([50 x i8]* @str2, i32 0, i32 0),
29 i8* getelementptr ([45 x i8]* @str3, i32 0, i32 0) }, section "llvm.metadata" ; <%llvm.dbg.compile_unit.type*> [#uses=1]
30 @str1 = internal constant [11 x i8] c"funccall.c\00", section "llvm.metadata" ; <[11 x i8]*> [#uses=1]
31 @str2 = internal constant [50 x i8] c"/Volumes/Big2/llvm/llvm/test/Regression/Debugger/\00", section "llvm.metadata" ; <[50 x i8]*> [#uses=1]
32 @str3 = internal constant [45 x i8] c"4.0.1 LLVM (Apple Computer, Inc. build 5421)\00", section "llvm.metadata" ; <[45 x i8]*> [#uses=1]
33 @llvm.dbg.variable = internal constant %llvm.dbg.variable.type {
34 i32 393472,
35 { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*),
36 i8* getelementptr ([2 x i8]* @str4, i32 0, i32 0),
37 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
38 i32 5,
39 { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*) }, section "llvm.metadata" ; <%llvm.dbg.variable.type*> [#uses=1]
40 @str4 = internal constant [2 x i8] c"t\00", section "llvm.metadata" ; <[2 x i8]*> [#uses=1]
41 @llvm.dbg.basictype = internal constant %llvm.dbg.basictype.type {
42 i32 393252,
43 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
44 i8* getelementptr ([4 x i8]* @str15, i32 0, i32 0),
45 { }* null,
46 i32 0,
47 i64 32,
48 i64 32,
49 i64 0,
50 i32 0,
51 i32 5 }, section "llvm.metadata" ; <%llvm.dbg.basictype.type*> [#uses=1]
52 @str15 = internal constant [4 x i8] c"int\00", section "llvm.metadata" ; <[4 x i8]*> [#uses=1]
53 @llvm.dbg.subprogram2 = internal constant %llvm.dbg.subprogram.type {
54 i32 393262,
55 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.subprograms to { }*),
56 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
57 i8* getelementptr ([5 x i8]* @str6, i32 0, i32 0),
58 i8* getelementptr ([5 x i8]* @str6, i32 0, i32 0),
59 i8* null,
60 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
61 i32 8,
62 { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*),
63 i1 false,
64 i1 true }, section "llvm.metadata" ; <%llvm.dbg.subprogram.type*> [#uses=1]
65 @str6 = internal constant [5 x i8] c"main\00", section "llvm.metadata" ; <[5 x i8]*> [#uses=1]
66 @llvm.dbg.variable3 = internal constant %llvm.dbg.variable.type {
67 i32 393474,
68 { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram2 to { }*),
69 i8* getelementptr ([7 x i8]* @str7, i32 0, i32 0),
70 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
71 i32 8,
72 { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*) }, section "llvm.metadata" ; <%llvm.dbg.variable.type*> [#uses=1]
73 @str7 = internal constant [7 x i8] c"retval\00", section "llvm.metadata" ; <[7 x i8]*> [#uses=1]
74 @llvm.dbg.global_variable = internal constant %llvm.dbg.global_variable.type {
75 i32 393268,
76 { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.global_variables to { }*),
77 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
78 i8* getelementptr ([2 x i8]* @str4, i32 0, i32 0),
79 i8* getelementptr ([2 x i8]* @str4, i32 0, i32 0),
80 i8* null,
81 { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*),
82 i32 2,
83 { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*),
84 i1 true,
85 i1 true,
86 { }* bitcast (i32* @q to { }*) }, section "llvm.metadata" ; <%llvm.dbg.global_variable.type*> [#uses=0]
87 @str4.upgrd.1 = internal constant [2 x i8] c"q\00", section "llvm.metadata" ; <[2 x i8]*> [#uses=0]
88 @q = internal global i32 0 ; [#uses=7]
89
90 declare void @llvm.dbg.func.start({ }*)
91
92 declare void @llvm.dbg.stoppoint(i32, i32, { }*)
93
94 declare void @llvm.dbg.declare({ }*, { }*)
95
96 declare void @llvm.dbg.region.start({ }*)
97
98 declare void @llvm.dbg.region.end({ }*)
99
100 define void @foo() {
101 entry:
102 %t = alloca i32, align 4 ; [#uses=3]
103 %"alloca point" = bitcast i32 0 to i32 ; [#uses=0]
104 call void @llvm.dbg.func.start( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*) )
105 call void @llvm.dbg.stoppoint( i32 4, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
106 %t.upgrd.2 = bitcast i32* %t to { }* ; <{ }*> [#uses=1]
107 call void @llvm.dbg.declare( { }* %t.upgrd.2, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable to { }*) )
108 call void @llvm.dbg.stoppoint( i32 5, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
109 %tmp = load i32* @q ; [#uses=1]
110 store i32 %tmp, i32* %t
111 call void @llvm.dbg.stoppoint( i32 6, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
112 %tmp1 = load i32* %t ; [#uses=1]
113 %tmp2 = add i32 %tmp1, 1 ; [#uses=1]
114 store i32 %tmp2, i32* @q
115 call void @llvm.dbg.stoppoint( i32 7, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
116 call void @llvm.dbg.region.end( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*) )
117 ret void
118 }
119
120 define i32 @main() {
121 entry:
122 %retval = alloca i32, align 4 ; [#uses=3]
123 %tmp = alloca i32, align 4 ; [#uses=2]
124 %"alloca point" = bitcast i32 0 to i32 ; [#uses=0]
125 call void @llvm.dbg.func.start( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram2 to { }*) )
126 call void @llvm.dbg.stoppoint( i32 8, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
127 %retval.upgrd.3 = bitcast i32* %retval to { }* ; <{ }*> [#uses=1]
128 call void @llvm.dbg.declare( { }* %retval.upgrd.3, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable3 to { }*) )
129 call void @llvm.dbg.stoppoint( i32 9, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
130 store i32 0, i32* @q
131 call void @llvm.dbg.stoppoint( i32 10, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
132 call void (...)* bitcast (void ()* @foo to void (...)*)( )
133 call void @llvm.dbg.stoppoint( i32 11, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
134 %tmp.upgrd.4 = load i32* @q ; [#uses=1]
135 %tmp1 = sub i32 %tmp.upgrd.4, 1 ; [#uses=1]
136 store i32 %tmp1, i32* @q
137 call void @llvm.dbg.stoppoint( i32 13, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
138 %tmp2 = load i32* @q ; [#uses=1]
139 store i32 %tmp2, i32* %tmp
140 %tmp3 = load i32* %tmp ; [#uses=1]
141 store i32 %tmp3, i32* %retval
142 %retval.upgrd.5 = load i32* %retval ; [#uses=1]
143 call void @llvm.dbg.stoppoint( i32 14, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*) )
144 call void @llvm.dbg.region.end( { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram2 to { }*) )
145 ret i32 %retval.upgrd.5
146 }