[llvm-commits] [llvm] r75392 - /llvm/trunk/test/CodeGen/X86/rip-rel-address.ll

Chris Lattner sabre at nondot.org
Sat Jul 11 15:30:05 PDT 2009


Author: lattner
Date: Sat Jul 11 17:30:05 2009
New Revision: 75392

URL: http://llvm.org/viewvc/llvm-project?rev=75392&view=rev
Log:
this test was incorrect for x86-64 static.  It passed on darwin, because darwin
doesn't have static x86-64 mode.

Modified:
    llvm/trunk/test/CodeGen/X86/rip-rel-address.ll

Modified: llvm/trunk/test/CodeGen/X86/rip-rel-address.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/rip-rel-address.ll?rev=75392&r1=75391&r2=75392&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/rip-rel-address.ll (original)
+++ llvm/trunk/test/CodeGen/X86/rip-rel-address.ll Sat Jul 11 17:30:05 2009
@@ -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
 }





More information about the llvm-commits mailing list