llvm.org GIT mirror llvm / ec656f5
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21304 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -condprop | llvm-dis | not grep 'br label'
1
2 int %test(bool %C) {
3 br bool %C, label %T1, label %F1
4 T1:
5 br label %Cont
6 F1:
7 br label %Cont
8 Cont:
9 %C2 = phi bool [false, %F1], [true, %T1]
10 br bool %C2, label %T2, label %F2
11 T2:
12 call void %bar()
13 ret int 17
14 F2:
15 ret int 1
16 }
17 declare void %bar()
0 load_lib llvm-dg.exp
1
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext