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