Teach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' aren't tests.
[oota-llvm.git] / test / Transforms / DeadStoreElimination / 2008-07-28-load-store.ll
1 ; RUN: opt < %s -dse -S | not grep tmp5
2 ; PR2599
3
4 define void @foo({ i32, i32 }* %x) nounwind  {
5 entry:
6         %tmp4 = getelementptr { i32, i32 }* %x, i32 0, i32 0            ; <i32*> [#uses=2]
7         %tmp5 = load i32* %tmp4, align 4                ; <i32> [#uses=1]
8         %tmp7 = getelementptr { i32, i32 }* %x, i32 0, i32 1            ; <i32*> [#uses=2]
9         %tmp8 = load i32* %tmp7, align 4                ; <i32> [#uses=1]
10         %tmp17 = sub i32 0, %tmp8               ; <i32> [#uses=1]
11         store i32 %tmp5, i32* %tmp4, align 4
12         store i32 %tmp17, i32* %tmp7, align 4
13         ret void
14 }