Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/Mips/lcb5.ll @ 95:afa8332a0e37
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children | 7d135dc70f03 |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci | 1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci |
2 | 2 |
3 @i = global i32 0, align 4 | 3 @i = global i32 0, align 4 |
4 @j = common global i32 0, align 4 | 4 @j = common global i32 0, align 4 |
5 @k = common global i32 0, align 4 | 5 @k = common global i32 0, align 4 |
6 | 6 |
7 ; Function Attrs: nounwind optsize | 7 ; Function Attrs: nounwind optsize |
8 define i32 @x0() #0 { | 8 define i32 @x0() #0 { |
9 entry: | 9 entry: |
10 %0 = load i32* @i, align 4, !tbaa !1 | 10 %0 = load i32, i32* @i, align 4, !tbaa !1 |
11 %cmp = icmp eq i32 %0, 0 | 11 %cmp = icmp eq i32 %0, 0 |
12 br i1 %cmp, label %if.then, label %if.else | 12 br i1 %cmp, label %if.then, label %if.else |
13 | 13 |
14 if.then: ; preds = %entry | 14 if.then: ; preds = %entry |
15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !5 | 15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !5 |
31 ; ci: .end x0 | 31 ; ci: .end x0 |
32 | 32 |
33 ; Function Attrs: nounwind optsize | 33 ; Function Attrs: nounwind optsize |
34 define i32 @x1() #0 { | 34 define i32 @x1() #0 { |
35 entry: | 35 entry: |
36 %0 = load i32* @i, align 4, !tbaa !1 | 36 %0 = load i32, i32* @i, align 4, !tbaa !1 |
37 %cmp = icmp eq i32 %0, 0 | 37 %cmp = icmp eq i32 %0, 0 |
38 br i1 %cmp, label %if.then, label %if.else | 38 br i1 %cmp, label %if.then, label %if.else |
39 | 39 |
40 if.then: ; preds = %entry | 40 if.then: ; preds = %entry |
41 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !7 | 41 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !7 |
59 ; ci: .end x1 | 59 ; ci: .end x1 |
60 | 60 |
61 ; Function Attrs: nounwind optsize | 61 ; Function Attrs: nounwind optsize |
62 define i32 @y0() #0 { | 62 define i32 @y0() #0 { |
63 entry: | 63 entry: |
64 %0 = load i32* @i, align 4, !tbaa !1 | 64 %0 = load i32, i32* @i, align 4, !tbaa !1 |
65 %cmp = icmp eq i32 %0, 0 | 65 %cmp = icmp eq i32 %0, 0 |
66 br i1 %cmp, label %if.then, label %if.else | 66 br i1 %cmp, label %if.then, label %if.else |
67 | 67 |
68 if.then: ; preds = %entry | 68 if.then: ; preds = %entry |
69 store i32 10, i32* @j, align 4, !tbaa !1 | 69 store i32 10, i32* @j, align 4, !tbaa !1 |
84 ; ci: .end y0 | 84 ; ci: .end y0 |
85 | 85 |
86 ; Function Attrs: nounwind optsize | 86 ; Function Attrs: nounwind optsize |
87 define i32 @y1() #0 { | 87 define i32 @y1() #0 { |
88 entry: | 88 entry: |
89 %0 = load i32* @i, align 4, !tbaa !1 | 89 %0 = load i32, i32* @i, align 4, !tbaa !1 |
90 %cmp = icmp eq i32 %0, 0 | 90 %cmp = icmp eq i32 %0, 0 |
91 br i1 %cmp, label %if.then, label %if.else | 91 br i1 %cmp, label %if.then, label %if.else |
92 | 92 |
93 if.then: ; preds = %entry | 93 if.then: ; preds = %entry |
94 store i32 10, i32* @j, align 4, !tbaa !1 | 94 store i32 10, i32* @j, align 4, !tbaa !1 |
112 ; ci: .end y1 | 112 ; ci: .end y1 |
113 | 113 |
114 ; Function Attrs: nounwind optsize | 114 ; Function Attrs: nounwind optsize |
115 define void @z0() #0 { | 115 define void @z0() #0 { |
116 entry: | 116 entry: |
117 %0 = load i32* @i, align 4, !tbaa !1 | 117 %0 = load i32, i32* @i, align 4, !tbaa !1 |
118 %1 = load i32* @j, align 4, !tbaa !1 | 118 %1 = load i32, i32* @j, align 4, !tbaa !1 |
119 %cmp = icmp eq i32 %0, %1 | 119 %cmp = icmp eq i32 %0, %1 |
120 br i1 %cmp, label %if.then, label %if.else | 120 br i1 %cmp, label %if.then, label %if.else |
121 | 121 |
122 if.then: ; preds = %entry | 122 if.then: ; preds = %entry |
123 store i32 1, i32* @k, align 4, !tbaa !1 | 123 store i32 1, i32* @k, align 4, !tbaa !1 |
138 ; ci: .end z0 | 138 ; ci: .end z0 |
139 | 139 |
140 ; Function Attrs: nounwind optsize | 140 ; Function Attrs: nounwind optsize |
141 define void @z1() #0 { | 141 define void @z1() #0 { |
142 entry: | 142 entry: |
143 %0 = load i32* @i, align 4, !tbaa !1 | 143 %0 = load i32, i32* @i, align 4, !tbaa !1 |
144 %1 = load i32* @j, align 4, !tbaa !1 | 144 %1 = load i32, i32* @j, align 4, !tbaa !1 |
145 %cmp = icmp eq i32 %0, %1 | 145 %cmp = icmp eq i32 %0, %1 |
146 br i1 %cmp, label %if.then, label %if.else | 146 br i1 %cmp, label %if.then, label %if.else |
147 | 147 |
148 if.then: ; preds = %entry | 148 if.then: ; preds = %entry |
149 store i32 1, i32* @k, align 4, !tbaa !1 | 149 store i32 1, i32* @k, align 4, !tbaa !1 |
167 ; ci: .end z1 | 167 ; ci: .end z1 |
168 | 168 |
169 ; Function Attrs: nounwind optsize | 169 ; Function Attrs: nounwind optsize |
170 define void @z3() #0 { | 170 define void @z3() #0 { |
171 entry: | 171 entry: |
172 %0 = load i32* @i, align 4, !tbaa !1 | 172 %0 = load i32, i32* @i, align 4, !tbaa !1 |
173 %1 = load i32* @j, align 4, !tbaa !1 | 173 %1 = load i32, i32* @j, align 4, !tbaa !1 |
174 %cmp1 = icmp sgt i32 %0, %1 | 174 %cmp1 = icmp sgt i32 %0, %1 |
175 br i1 %cmp1, label %if.then, label %if.end | 175 br i1 %cmp1, label %if.then, label %if.end |
176 | 176 |
177 if.then: ; preds = %entry, %if.then | 177 if.then: ; preds = %entry, %if.then |
178 tail call void asm sideeffect ".space 10000", ""() #1, !srcloc !17 | 178 tail call void asm sideeffect ".space 10000", ""() #1, !srcloc !17 |
179 %2 = load i32* @i, align 4, !tbaa !1 | 179 %2 = load i32, i32* @i, align 4, !tbaa !1 |
180 %3 = load i32* @j, align 4, !tbaa !1 | 180 %3 = load i32, i32* @j, align 4, !tbaa !1 |
181 %cmp = icmp sgt i32 %2, %3 | 181 %cmp = icmp sgt i32 %2, %3 |
182 br i1 %cmp, label %if.then, label %if.end | 182 br i1 %cmp, label %if.then, label %if.end |
183 | 183 |
184 if.end: ; preds = %if.then, %entry | 184 if.end: ; preds = %if.then, %entry |
185 ret void | 185 ret void |
190 ; ci: .end z3 | 190 ; ci: .end z3 |
191 | 191 |
192 ; Function Attrs: nounwind optsize | 192 ; Function Attrs: nounwind optsize |
193 define void @z4() #0 { | 193 define void @z4() #0 { |
194 entry: | 194 entry: |
195 %0 = load i32* @i, align 4, !tbaa !1 | 195 %0 = load i32, i32* @i, align 4, !tbaa !1 |
196 %1 = load i32* @j, align 4, !tbaa !1 | 196 %1 = load i32, i32* @j, align 4, !tbaa !1 |
197 %cmp1 = icmp sgt i32 %0, %1 | 197 %cmp1 = icmp sgt i32 %0, %1 |
198 br i1 %cmp1, label %if.then, label %if.end | 198 br i1 %cmp1, label %if.then, label %if.end |
199 | 199 |
200 if.then: ; preds = %entry, %if.then | 200 if.then: ; preds = %entry, %if.then |
201 tail call void asm sideeffect ".space 10000000", ""() #1, !srcloc !18 | 201 tail call void asm sideeffect ".space 10000000", ""() #1, !srcloc !18 |
202 %2 = load i32* @i, align 4, !tbaa !1 | 202 %2 = load i32, i32* @i, align 4, !tbaa !1 |
203 %3 = load i32* @j, align 4, !tbaa !1 | 203 %3 = load i32, i32* @j, align 4, !tbaa !1 |
204 %cmp = icmp sgt i32 %2, %3 | 204 %cmp = icmp sgt i32 %2, %3 |
205 br i1 %cmp, label %if.then, label %if.end | 205 br i1 %cmp, label %if.then, label %if.end |
206 | 206 |
207 if.end: ; preds = %if.then, %entry | 207 if.end: ; preds = %if.then, %entry |
208 ret void | 208 ret void |