; RUN: llvm-as < %s | llc -march=x86 | not grep lea
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep lea
+; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic | not grep lea
@B = external global [1000 x i8], align 32
@A = external global [1000 x i8], align 32
; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static | grep lea | count 1
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep lea
+; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic | not grep lea
; For x86 there's an lea above the loop. In both cases, there shouldn't
; be any lea instructions inside the loop.
; RUN: llvm-as < %s | llc -march=x86 | not grep lea
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep lea
+; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic | not grep lea
@B = external global [1000 x float], align 32
@A = external global [1000 x float], align 32