llvm.org GIT mirror llvm / 6cc8375
New testcase that crashes the -lowerswitch pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12383 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -lowerswitch -disable-output
1
2 void %solve() {
3 entry:
4 %targetBlock = call ushort %solve_code( ) ; [#uses=1]
5 br label %codeReplTail
6
7 then.1: ; preds = %codeReplTail
8 ret void
9
10 loopexit.0: ; preds = %codeReplTail
11 ret void
12
13 codeReplTail: ; preds = %entry, %codeReplTail
14 switch ushort %targetBlock, label %codeReplTail [
15 ushort 0, label %loopexit.0
16 ushort 1, label %then.1
17 ]
18 }
19
20 declare ushort %solve_code()