1 ; RUN: opt < %s -lowerswitch -disable-output 2 3 define void @solve() { 4 entry: 5 %targetBlock = call i16 @solve_code( ) ; <i16> [#uses=1] 6 br label %codeReplTail 7 then.1: ; preds = %codeReplTail 8 ret void 9 loopexit.0: ; preds = %codeReplTail 10 ret void 11 codeReplTail: ; preds = %codeReplTail, %entry 12 switch i16 %targetBlock, label %codeReplTail [ 13 i16 0, label %loopexit.0 14 i16 1, label %then.1 15 ] 16 } 17 18 declare i16 @solve_code() 19 20