source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/funcptr_cast.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 325 bytes
Line 
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(...)
Note: See TracBrowser for help on using the repository browser.