mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
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
|
||
|
}
|