blob: c17f8ce542557a08fce281ff3ba71e1bd5eb442f [file] [log] [blame]
Misha Brukmane78760e2003-09-16 15:29:54 +00001; RUN: llvm-as < %s | opt -lowerswitch
Chris Lattner215f0b72003-05-01 21:27:24 +00002
3void %child(int %ct.1) {
4entry: ; No predecessors!
5 switch uint 0, label %return [
Chris Lattner215f0b72003-05-01 21:27:24 +00006 uint 3, label %UnifiedExitNode
7 uint 0, label %return
Chris Lattner215f0b72003-05-01 21:27:24 +00008 ]
9
10return: ; preds = %entry, %entry
Chris Lattner3d73c702003-05-01 21:38:57 +000011 %result.0 = phi int* [ null, %entry ], [ null, %entry ] ; <%struct.quad_struct*> [#uses=0]
Chris Lattner215f0b72003-05-01 21:27:24 +000012 br label %UnifiedExitNode
13
14UnifiedExitNode: ; preds = %entry, %return, %entry, %entry
15 ret void
16}
17