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