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 | \
6 @src = external global i32
8 define i32 @loadgv() nounwind {
10 %0 = load i32* @src, align 4
11 %1 = load i32* @src, align 4
13 store i32 %2, i32* @src
17 %stuff = type { i32 (...)** }
18 @LotsStuff = external constant [4 x i32 (...)*]
20 define void @t(%stuff* %this) nounwind {
22 store i32 (...)** getelementptr ([4 x i32 (...)*]* @LotsStuff, i32 0, i32 2), i32 (...)*** null, align 4