repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git]
/
test
/
Transforms
/
LowerSwitch
/
feature.ll
blob
cdfa0f371d66617223b70674c13cda8d985f1917
1
; RUN: opt < %s -lowerswitch -S > %t
2
; RUN: grep slt %t | count 10
3
; RUN: grep ule %t | count 3
4
; RUN: grep eq %t | count 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
}