blob: f9c79d6b5dda16da8f6a64f4345fa26d95de69d7 [file] [log] [blame]
Reid Spencerc0948362007-01-16 18:08:22 +00001; 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
7implementation
8
9define i35 "squared"(%i35 %i0)
10begin
11 switch i35 %i0, label %Default [
12 i35 1, label %Case1
13 i35 2, label %Case2
14 i35 4, label %Case4 ]
15
16Default:
17 ret i35 -1 ; Unrecognized input value
18
19Case1:
20 ret i35 1
21Case2:
22 ret i35 4
23Case4:
24 ret i35 16
25end