blob: e2c0ba398c68dc87c9d85ff0ac29496808b7e8b0 [file] [log] [blame]
Dale Johannesenc66cdf72010-06-18 19:00:18 +00001; RUN: llc < %s -march=arm -mtriple=arm-apple-darwin | \
2; RUN: grep cmpne | count 1
3; RUN: llc < %s -march=arm -mtriple=arm-apple-darwin | \
Dale Johannesen9b0d0a42010-06-23 18:56:06 +00004; RUN: grep ldmiahi | count 1
Dale Johannesenc66cdf72010-06-18 19:00:18 +00005
6define void @foo(i32 %X, i32 %Y) {
7entry:
8 %tmp1 = icmp ult i32 %X, 4 ; <i1> [#uses=1]
9 %tmp4 = icmp eq i32 %Y, 0 ; <i1> [#uses=1]
10 %tmp7 = or i1 %tmp4, %tmp1 ; <i1> [#uses=1]
11 br i1 %tmp7, label %cond_true, label %UnifiedReturnBlock
12
13cond_true: ; preds = %entry
Dale Johannesen9b0d0a42010-06-23 18:56:06 +000014 %tmp10 = call i32 (...)* @bar( ) ; <i32> [#uses=0]
Dale Johannesenc66cdf72010-06-18 19:00:18 +000015 ret void
16
17UnifiedReturnBlock: ; preds = %entry
18 ret void
19}
20
21declare i32 @bar(...)