1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine i8 @test() { 4*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @test 5*9880d681SAndroid Build Coastguard Worker; CHECK: adrp {{x[0-9]+}}, foo 6*9880d681SAndroid Build Coastguard Worker; CHECK: add {{x[0-9]+}}, {{x[0-9]+}}, :lo12:foo 7*9880d681SAndroid Build Coastguard Worker; CHECK: ldrb w0, [{{x[0-9]+}}] 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker %0 = load i8, i8* bitcast (void (...)* @foo to i8*), align 1 10*9880d681SAndroid Build Coastguard Worker ret i8 %0 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdeclare void @foo(...) 14