Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/AArch64/funcptr_cast.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llc < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s define i8 @test() { ; CHECK-LABEL: @test ; CHECK: adrp {{x[0-9]+}}, foo ; CHECK: add {{x[0-9]+}}, {{x[0-9]+}}, :lo12:foo ; CHECK: ldrb w0, [{{x[0-9]+}}] entry: %0 = load i8, i8* bitcast (void (...)* @foo to i8*), align 1 ret i8 %0 } declare void @foo(...)