projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9cc27f2ffaa44c55ecc92df58178db4c4cb01d80
[oota-llvm.git]
/
switch.ll
1
; RUN: llc -march=xcore < %s | FileCheck %s
2
3
define i32 @switch(i32 %i) {
4
entry:
5
switch i32 %i, label %default [
6
i32 0, label %bb0
7
i32 1, label %bb1
8
i32 2, label %bb2
9
i32 3, label %bb3
10
]
11
; CHECK-NOT: shl
12
; CHECK: bru
13
; CHECK: .jmptable
14
bb0:
15
ret i32 0
16
bb1:
17
ret i32 1
18
bb2:
19
ret i32 2
20
bb3:
21
ret i32 3
22
default:
23
ret i32 4
24
}