llvm.org GIT mirror llvm / c3d73de
file 2007-05-09-JumpTables.ll was added on branch release_20 on 2007-05-10 04:47:38 +0000 git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_20@36961 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 13 years ago
1 changed file(s) with 0 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
+0
-30
test/CodeGen/SPARC/2007-05-09-JumpTables.ll less more
None ; RUN: llvm-as < %s | llc -march=sparc
1
2 ; We cannot emit jump tables on Sparc, but we should correctly handle this case.
3
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
5
6 define i32 @foo(i32 %f) {
7 entry:
8 switch i32 %f, label %bb14 [
9 i32 0, label %UnifiedReturnBlock
10 i32 1, label %bb4
11 i32 2, label %bb7
12 i32 3, label %bb10
13 ]
14
15 bb4: ; preds = %entry
16 ret i32 2
17
18 bb7: ; preds = %entry
19 ret i32 5
20
21 bb10: ; preds = %entry
22 ret i32 9
23
24 bb14: ; preds = %entry
25 ret i32 0
26
27 UnifiedReturnBlock: ; preds = %entry
28 ret i32 1
29 }