diff options
Diffstat (limited to 'test/CodeGen/NVPTX/callchain.ll')
-rw-r--r-- | test/CodeGen/NVPTX/callchain.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/callchain.ll b/test/CodeGen/NVPTX/callchain.ll new file mode 100644 index 0000000000..60b118b6a1 --- /dev/null +++ b/test/CodeGen/NVPTX/callchain.ll @@ -0,0 +1,10 @@ +; 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 +} |