blob: 863c28785f600cb2e674580c7bad92ba033ac817 [file] [log] [blame]
Nick Lewycky8a702d92009-07-11 23:48:59 +00001; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=PIC64
Chris Lattner0fd13582009-07-11 22:30:05 +00002; RUN: llvm-as < %s | llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=static | FileCheck %s -check-prefix=STATIC64
Dan Gohmane254f322009-03-14 02:33:41 +00003
4@a = internal global double 3.4
5define double @foo() nounwind {
6 %a = load double* @a
7 ret double %a
Chris Lattner0fd13582009-07-11 22:30:05 +00008
9; PIC64: movsd _a(%rip), %xmm0
10; STATIC64: movsd a, %xmm0
Dan Gohmane254f322009-03-14 02:33:41 +000011}