1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll
Dan Gohman 205b641954 Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.

llvm-svn: 81537
2009-09-11 18:01:28 +00:00

20 lines
429 B
LLVM

; RUN: opt < %s -lowerswitch -disable-output
define void @solve() {
entry:
%targetBlock = call i16 @solve_code( ) ; <i16> [#uses=1]
br label %codeReplTail
then.1: ; preds = %codeReplTail
ret void
loopexit.0: ; preds = %codeReplTail
ret void
codeReplTail: ; preds = %codeReplTail, %entry
switch i16 %targetBlock, label %codeReplTail [
i16 0, label %loopexit.0
i16 1, label %then.1
]
}
declare i16 @solve_code()