llvm-6502/test/Transforms/GVNPRE/2007-07-04-SelectInst.ll
Dan Gohman f2f6ce65b7 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 18:01:28 +00:00

19 lines
642 B
LLVM

; RUN: opt < %s -gvnpre | llvm-dis
define void @set_depth_values(i32 %level) {
cond_true90: ; preds = %cond_next84
br i1 false, label %cond_true105, label %cond_true151
cond_true105: ; preds = %cond_true90
%tmp132 = add i32 %level, -3 ; <i32> [#uses=2]
%tmp133 = icmp sgt i32 %tmp132, 0 ; <i1> [#uses=1]
%max134 = select i1 %tmp133, i32 %tmp132, i32 1 ; <i32> [#uses=0]
br label %cond_true151
cond_true151: ; preds = %cond_true140, %cond_true105
%tmp153 = add i32 %level, -3 ; <i32> [#uses=2]
%tmp154 = icmp sgt i32 %tmp153, 0 ; <i1> [#uses=1]
%max155 = select i1 %tmp154, i32 %tmp153, i32 1 ; <i32> [#uses=0]
ret void
}