Change these tests to feed the assembly files to opt directly, instead
[oota-llvm.git] / test / Transforms / InstCombine / store.ll
1 ; RUN: opt %s -instcombine | llvm-dis | \
2 ; RUN:   grep -v {store.*,.*null} | not grep store
3
4 define void @test1(i32* %P) {
5         store i32 undef, i32* %P
6         store i32 123, i32* undef
7         store i32 124, i32* null
8         ret void
9 }
10
11 define void @test2(i32* %P) {
12         %X = load i32* %P               ; <i32> [#uses=1]
13         %Y = add i32 %X, 0              ; <i32> [#uses=1]
14         store i32 %Y, i32* %P
15         ret void
16 }
17