llvm.org GIT mirror llvm / cbac0aa
testcase for pr1061 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32674 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 91 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel
1 ; PR1061
2
3 target datalayout = "e-p:32:32"
4 target endian = little
5 target pointersize = 32
6 target triple = "i686-pc-linux-gnu"
7
8 implementation ; Functions:
9
10 void %bar(uint %n) {
11 entry:
12 switch uint %n, label %bb12 [
13 uint 1, label %bb
14 uint 2, label %bb6
15 uint 4, label %bb7
16 uint 5, label %bb8
17 uint 6, label %bb10
18 uint 7, label %bb1
19 uint 8, label %bb3
20 uint 9, label %bb4
21 uint 10, label %bb9
22 uint 11, label %bb2
23 uint 12, label %bb5
24 uint 13, label %bb11
25 ]
26
27 bb: ; preds = %entry
28 call void (...)* %foo1( )
29 ret void
30
31 bb1: ; preds = %entry
32 call void (...)* %foo2( )
33 ret void
34
35 bb2: ; preds = %entry
36 call void (...)* %foo6( )
37 ret void
38
39 bb3: ; preds = %entry
40 call void (...)* %foo3( )
41 ret void
42
43 bb4: ; preds = %entry
44 call void (...)* %foo4( )
45 ret void
46
47 bb5: ; preds = %entry
48 call void (...)* %foo5( )
49 ret void
50
51 bb6: ; preds = %entry
52 call void (...)* %foo1( )
53 ret void
54
55 bb7: ; preds = %entry
56 call void (...)* %foo2( )
57 ret void
58
59 bb8: ; preds = %entry
60 call void (...)* %foo6( )
61 ret void
62
63 bb9: ; preds = %entry
64 call void (...)* %foo3( )
65 ret void
66
67 bb10: ; preds = %entry
68 call void (...)* %foo4( )
69 ret void
70
71 bb11: ; preds = %entry
72 call void (...)* %foo5( )
73 ret void
74
75 bb12: ; preds = %entry
76 call void (...)* %foo6( )
77 ret void
78 }
79
80 declare void %foo1(...)
81
82 declare void %foo2(...)
83
84 declare void %foo6(...)
85
86 declare void %foo3(...)
87
88 declare void %foo4(...)
89
90 declare void %foo5(...)