repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
XCore
/
switch.ll
blob
9cc27f2ffaa44c55ecc92df58178db4c4cb01d80
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
}