1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/pic-local.ll
Rafael Espindola 589bd1a4f9 Start using shouldAssumeDSOLocal on Hexagon.
Include a token test showing that access to private is now the same as
to internal.

llvm-svn: 273457
2016-06-22 19:09:14 +00:00

20 lines
340 B
LLVM

; 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
}