mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 21:41:43 +00:00

Using a special machine node is cleaner than an InlineAsm node, and fixes an assertion failure in InstrEmitter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194810 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
235 B
LLVM
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
|
|
}
|