summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/rip-rel-address.ll
blob: 2c0926a6544300e5d18da25a587cf989e7de8e4c (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static | grep {a(%rip)}

@a = internal global double 3.4
define double @foo() nounwind {
  %a = load double* @a
  ret double %a
}
OpenPOWER on IntegriCloud