diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-11 22:30:05 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-11 22:30:05 +0000 | 
| commit | 056dfc6f9075194420079452c81fa1f0096e97eb (patch) | |
| tree | 3d827e089c203c6f9141d070d5ee06d3642b2d8f /llvm | |
| parent | 8bda49a827cea3f5df78b3a12f50d572ea38e14d (diff) | |
| download | bcm5719-llvm-056dfc6f9075194420079452c81fa1f0096e97eb.tar.gz bcm5719-llvm-056dfc6f9075194420079452c81fa1f0096e97eb.zip | |
this test was incorrect for x86-64 static.  It passed on darwin, because darwin
doesn't have static x86-64 mode.
llvm-svn: 75392
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/X86/rip-rel-address.ll | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/llvm/test/CodeGen/X86/rip-rel-address.ll b/llvm/test/CodeGen/X86/rip-rel-address.ll index 2c0926a6544..576ebe1bd4d 100644 --- a/llvm/test/CodeGen/X86/rip-rel-address.ll +++ b/llvm/test/CodeGen/X86/rip-rel-address.ll @@ -1,7 +1,11 @@ -; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static | grep {a(%rip)} +; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic | FileCheck %s -check-prefix=PIC64 +; RUN: llvm-as < %s | llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=static | FileCheck %s -check-prefix=STATIC64  @a = internal global double 3.4  define double @foo() nounwind {    %a = load double* @a    ret double %a +   +; PIC64:    movsd	_a(%rip), %xmm0 +; STATIC64: movsd	a, %xmm0  } | 

