merge two tests and convert to filecheck.
[oota-llvm.git] / test / Transforms / SCCP / ipsccp-basic.ll
1 ; RUN: opt < %s -ipsccp -S | \
2 ; RUN:   grep -v {ret i32 17} | grep -v {ret i32 undef} | not grep ret
3
4 define internal i32 @bar(i32 %A) {
5         %X = add i32 1, 2               ; <i32> [#uses=0]
6         ret i32 %A
7 }
8
9 define i32 @foo() {
10         %X = call i32 @bar( i32 17 )            ; <i32> [#uses=1]
11         ret i32 %X
12 }
13