blob: 62f7455d53c9b862dc6fb5cf937eb437bbeae477 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep set
2
3void %foo(int %X, int %Y, int %Z) {
4entry:
5 %tmp = tail call int (...)* %bar( ) ; <int> [#uses=0]
6 %tmp = seteq int %X, 0 ; <bool> [#uses=1]
7 %tmp3 = setlt int %Y, 5 ; <bool> [#uses=1]
8 %tmp4 = or bool %tmp3, %tmp ; <bool> [#uses=1]
9 br bool %tmp4, label %cond_true, label %UnifiedReturnBlock
10
11cond_true: ; preds = %entry
12 %tmp5 = tail call int (...)* %bar( ) ; <int> [#uses=0]
13 ret void
14
15UnifiedReturnBlock: ; preds = %entry
16 ret void
17}
18
19declare int %bar(...)