summaryrefslogtreecommitdiff
path: root/test/CodeGen/PTX
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2011-02-10 12:01:24 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2011-02-10 12:01:24 +0000
commit8e5d01cd6efa99a26c8584711a7e8abbcf14c333 (patch)
tree3c066a92a71c255efba8fff8a52c0cb8daa12e4a /test/CodeGen/PTX
parentcbf023d7ececf92071a7175ccf9b42bb15adfe8d (diff)
downloadllvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.tar.gz
llvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.tar.bz2
llvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.tar.xz
ptx: add passing parameter to kernel functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX')
-rw-r--r--test/CodeGen/PTX/exit.ll9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGen/PTX/exit.ll b/test/CodeGen/PTX/exit.ll
index 396898b623..4071babb80 100644
--- a/test/CodeGen/PTX/exit.ll
+++ b/test/CodeGen/PTX/exit.ll
@@ -3,5 +3,12 @@
define ptx_kernel void @t1() {
; CHECK: exit;
; CHECK-NOT: ret;
- ret void
+ ret void
+}
+
+define ptx_kernel void @t2(i32* %p, i32 %x) {
+ store i32 %x, i32* %p
+; CHECK: exit;
+; CHECK-NOT: ret;
+ ret void
}