• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6define i32 @main(i32 %tmp158) {
7entry:
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        ]
31bb:
32  ret i32 2
33bb322:
34  ret i32 3
35bb324:
36  ret i32 4
37bb326:
38  ret i32 5
39bb328:
40  ret i32 6
41bb330:
42  ret i32 7
43bb332:
44  ret i32 8
45bb334:
46  ret i32 9
47bb336:
48  ret i32 10
49bb338:
50  ret i32 11
51}
52