blob: bf7cdc510d61a87133b5a9713dd260a4bc8adb36 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +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
7
8define i35 @"squared"(%i35 %i0)
9begin
10 switch i35 %i0, label %Default [
11 i35 1, label %Case1
12 i35 2, label %Case2
13 i35 4, label %Case4 ]
14
15Default:
16 ret i35 -1 ; Unrecognized input value
17
18Case1:
19 ret i35 1
20Case2:
21 ret i35 4
22Case4:
23 ret i35 16
24end