Fix the ordering of operands to the store (inverted relative to LLVM IR), and fix...
[oota-llvm.git] / test / CodeGen / X86 / fast-isel-mem.ll
1 ; RUN: llvm-as < %s | llc -fast-isel -mtriple=i386-apple-darwin -mattr=sse2 | \
2 ; RUN:   grep mov | grep lazy_ptr | count 1
3
4 @src = external global i32
5
6 define i32 @loadgv() nounwind {
7 entry:
8         %0 = load i32* @src, align 4
9         %1 = load i32* @src, align 4
10         %2 = add i32 %0, %1
11   store i32 %2, i32* @src
12         ret i32 %2
13 }