Chris Lattner | 0fd1358 | 2009-07-11 22:30:05 +0000 | [diff] [blame^] | 1 | ; 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 Gohman | e254f32 | 2009-03-14 02:33:41 +0000 | [diff] [blame] | 3 | |
| 4 | @a = internal global double 3.4 |
| 5 | define double @foo() nounwind { |
| 6 | %a = load double* @a |
| 7 | ret double %a |
Chris Lattner | 0fd1358 | 2009-07-11 22:30:05 +0000 | [diff] [blame^] | 8 | |
| 9 | ; PIC64: movsd _a(%rip), %xmm0 |
| 10 | ; STATIC64: movsd a, %xmm0 |
Dan Gohman | e254f32 | 2009-03-14 02:33:41 +0000 | [diff] [blame] | 11 | } |