1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm64-linux-gnu -o - %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm64-linux-gnu -filetype=obj -o - %s | llvm-objdump -triple=arm64-linux-gnu - -r | FileCheck %s --check-prefix=CHECK-OBJ 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdeclare void @callee() 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine void @caller() { 7*9880d681SAndroid Build Coastguard Worker call void @callee() 8*9880d681SAndroid Build Coastguard Worker ret void 9*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: caller: 10*9880d681SAndroid Build Coastguard Worker; CHECK: bl callee 11*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: R_AARCH64_CALL26 callee 12*9880d681SAndroid Build Coastguard Worker} 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdefine void @tail_caller() { 15*9880d681SAndroid Build Coastguard Worker tail call void @callee() 16*9880d681SAndroid Build Coastguard Worker ret void 17*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: tail_caller: 18*9880d681SAndroid Build Coastguard Worker; CHECK: b callee 19*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: R_AARCH64_JUMP26 callee 20*9880d681SAndroid Build Coastguard Worker} 21