Eliminate more uses of llvm-as and llvm-dis.
[oota-llvm.git] / test / CodeGen / X86 / fast-isel-mem.ll
1 ; RUN: llc < %s -fast-isel -mtriple=i386-apple-darwin | \
2 ; RUN:   grep lazy_ptr, | count 2
3 ; RUN: llc < %s -fast-isel -march=x86 -relocation-model=static | \
4 ; RUN:   grep lea
5
6 @src = external global i32
7
8 define i32 @loadgv() nounwind {
9 entry:
10         %0 = load i32* @src, align 4
11         %1 = load i32* @src, align 4
12         %2 = add i32 %0, %1
13         store i32 %2, i32* @src
14         ret i32 %2
15 }
16
17 %stuff = type { i32 (...)** }
18 @LotsStuff = external constant [4 x i32 (...)*]
19
20 define void @t(%stuff* %this) nounwind {
21 entry:
22         store i32 (...)** getelementptr ([4 x i32 (...)*]* @LotsStuff, i32 0, i32 2), i32 (...)*** null, align 4
23         ret void
24 }