diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-02-10 12:01:24 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-02-10 12:01:24 +0000 |
commit | 8e5d01cd6efa99a26c8584711a7e8abbcf14c333 (patch) | |
tree | 3c066a92a71c255efba8fff8a52c0cb8daa12e4a /test | |
parent | cbf023d7ececf92071a7175ccf9b42bb15adfe8d (diff) | |
download | external_llvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.zip external_llvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.tar.gz external_llvm-8e5d01cd6efa99a26c8584711a7e8abbcf14c333.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/PTX/exit.ll | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGen/PTX/exit.ll b/test/CodeGen/PTX/exit.ll index 396898b..4071bab 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 } |