Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 |