blob: da36af8bb74b0b6e745e14289459703d9a605269 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm
2; RUN: llc < %s -march=arm | grep blge | count 1
Evan Cheng60c916b2007-06-20 18:26:15 +00003
4@x = external global i32* ; <i32**> [#uses=1]
5
6define void @foo(i32 %a) {
7entry:
8 %tmp = load i32** @x ; <i32*> [#uses=1]
9 store i32 %a, i32* %tmp
10 ret void
11}
12
13define void @t1(i32 %a, i32 %b) {
14entry:
15 %tmp1 = icmp sgt i32 %a, 10 ; <i1> [#uses=1]
16 br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock
17
18cond_true: ; preds = %entry
19 tail call void @foo( i32 %b )
20 ret void
21
22UnifiedReturnBlock: ; preds = %entry
23 ret void
24}