]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Hexagon/pic-local.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGen / Hexagon / pic-local.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s
2
3 define private void @f1() {
4   ret void
5 }
6
7 define internal void @f2() {
8   ret void
9 }
10
11 define void()* @get_f1() {
12   ; CHECK:  r0 = add(pc,##.Lf1@PCREL)
13   ret void()* @f1
14 }
15
16 define void()* @get_f2() {
17   ; CHECK: r0 = add(pc,##f2@PCREL)
18   ret void()* @f2
19 }