2016-06-23 03:09:14 +08:00
|
|
|
; 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() {
|
2017-02-10 23:33:13 +08:00
|
|
|
; CHECK: r0 = add(pc,##.Lf1@PCREL)
|
2016-06-23 03:09:14 +08:00
|
|
|
ret void()* @f1
|
|
|
|
}
|
|
|
|
|
|
|
|
define void()* @get_f2() {
|
2017-02-10 23:33:13 +08:00
|
|
|
; CHECK: r0 = add(pc,##f2@PCREL)
|
2016-06-23 03:09:14 +08:00
|
|
|
ret void()* @f2
|
|
|
|
}
|