llvm-for-llvmta/test/CodeGen/NVPTX/callchain.ll
Nils Hölscher 3500bf8dde first commit
2022-04-25 10:02:23 +02:00

11 lines
235 B
LLVM

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