1; RUN: llc -march=hexagon -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s
2
3define private void @f1() {
4  ret void
5}
6
7define internal void @f2() {
8  ret void
9}
10
11define void()* @get_f1() {
12  ; CHECK:  r0 = add(pc, ##.Lf1@PCREL)
13  ret void()* @f1
14}
15
16define void()* @get_f2() {
17  ; CHECK: r0 = add(pc, ##f2@PCREL)
18  ret void()* @f2
19}
20