llvm-project/llvm/test/CodeGen/NVPTX/callchain.ll

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
235 B
LLVM
Raw Normal View History

; 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
}