blob: 506485ec5b0cbc9f8ca5a39ea6a9258e6fef9120 [file] [log] [blame]
Chad Rosier304fe3f2014-06-30 15:03:00 +00001; 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:
David Blaikiea79ac142015-02-27 21:17:42 +00009 %0 = load i8, i8* bitcast (void (...)* @foo to i8*), align 1
Chad Rosier304fe3f2014-06-30 15:03:00 +000010 ret i8 %0
11}
12
13declare void @foo(...)