blob: 576ebe1bd4d5523534142cf2df98b1ec9eb2bcb9 [file] [log] [blame]
Chris Lattner0fd13582009-07-11 22:30:05 +00001; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic | 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
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}