Darwin prepends an _ to internal globals, Linux doesn't.
[oota-llvm.git] / test / CodeGen / X86 / rip-rel-address.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=PIC64
2 ; RUN: llvm-as < %s | llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=static | FileCheck %s -check-prefix=STATIC64
3
4 @a = internal global double 3.4
5 define double @foo() nounwind {
6   %a = load double* @a
7   ret double %a
8   
9 ; PIC64:    movsd       _a(%rip), %xmm0
10 ; STATIC64: movsd       a, %xmm0
11 }