llvm.org GIT mirror llvm / 8b8ff16
New testcase for PR310 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12596 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -tailduplicate -disable-output
1
2 void %interpret() {
3 entry:
4 br label %retry
5
6 retry:
7 %tmp.8 = call int %interp()
8 switch uint 0, label %endif.4 [
9 uint 4294967271, label %return
10 uint 4294967280, label %return
11 ]
12
13 endif.4:
14 br bool false, label %return, label %retry
15
16 return:
17 %result.0 = phi int [ %tmp.8, %retry ], [%tmp.8, %retry], [ %tmp.8, %endif.4 ]
18 ret void
19 }
20
21 declare int %interp()