repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add and use DominatorTreeBase::findNearestCommonDominator().
[llvm-complete.git]
/
test
/
Transforms
/
LowerSwitch
/
feature.ll
blob
0b3cdc780fb9af4ab97f5ca2f0fda9ddda0f2b5a
1
; RUN: llvm-as %s -o - | opt -lowerswitch | llvm-dis > %t
2
; RUN: grep slt %t | wc -l | grep 10
3
; RUN: grep ule %t | wc -l | grep 3
4
; RUN: grep eq %t | wc -l | grep 9
5
6
define i32 @main(i32 %tmp158) {
7
entry:
8
switch i32 %tmp158, label %bb336 [
9
i32 -2, label %bb338
10
i32 -3, label %bb338
11
i32 -4, label %bb338
12
i32 -5, label %bb338
13
i32 -6, label %bb338
14
i32 0, label %bb338
15
i32 1, label %bb338
16
i32 2, label %bb338
17
i32 3, label %bb338
18
i32 4, label %bb338
19
i32 5, label %bb338
20
i32 6, label %bb338
21
i32 7, label %bb
22
i32 8, label %bb338
23
i32 9, label %bb322
24
i32 10, label %bb324
25
i32 11, label %bb326
26
i32 12, label %bb328
27
i32 13, label %bb330
28
i32 14, label %bb332
29
i32 15, label %bb334
30
]
31
bb:
32
ret i32 2
33
bb322:
34
ret i32 3
35
bb324:
36
ret i32 4
37
bb326:
38
ret i32 5
39
bb328:
40
ret i32 6
41
bb330:
42
ret i32 7
43
bb332:
44
ret i32 8
45
bb334:
46
ret i32 9
47
bb336:
48
ret i32 10
49
bb338:
50
ret i32 11
51
}