view test/CodeGen/NVPTX/callchain.ll @ 100:7d135dc70f03

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s

target triple = "nvptx"

define void @foo(i8* %ptr) {
  %fnptr = bitcast i8* %ptr to void ()*
; CHECK: prototype_0 : .callprototype ()_ ()
  tail call void %fnptr()
  ret void
}