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
remove a dead bool.
[llvm/avr.git]
/
test
/
Integer
/
testswitch_bt.ll
blob
bf7cdc510d61a87133b5a9713dd260a4bc8adb36
1
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3
; RUN: diff %t1.ll %t2.ll
4
5
%i35 = type i35
6
7
8
define i35 @"squared"(%i35 %i0)
9
begin
10
switch i35 %i0, label %Default [
11
i35 1, label %Case1
12
i35 2, label %Case2
13
i35 4, label %Case4 ]
14
15
Default:
16
ret i35 -1 ; Unrecognized input value
17
18
Case1:
19
ret i35 1
20
Case2:
21
ret i35 4
22
Case4:
23
ret i35 16
24
end