Remove llvm-upgrade and update tests.
[oota-llvm.git] / test / CodeGen / X86 / store_op_load_fold.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | not grep mov
2 ;
3 ; Test the add and load are folded into the store instruction.
4
5 @X = internal global i16 0              ; <i16*> [#uses=2]
6
7 define void @foo() {
8         %tmp.0 = load i16* @X           ; <i16> [#uses=1]
9         %tmp.3 = add i16 %tmp.0, 329            ; <i16> [#uses=1]
10         store i16 %tmp.3, i16* @X
11         ret void
12 }
13