summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/pic-local.ll
blob: 48b0096aa6521a3dbbaa0725eb4625a7047d5325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -march=hexagon -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s

define private void @f1() {
  ret void
}

define internal void @f2() {
  ret void
}

define void()* @get_f1() {
  ; CHECK:  r0 = add(pc, ##.Lf1@PCREL)
  ret void()* @f1
}

define void()* @get_f2() {
  ; CHECK: r0 = add(pc, ##f2@PCREL)
  ret void()* @f2
}
OpenPOWER on IntegriCloud