Add test case for PTX ret instruction
authorChe-Liang Chiou <clchiou@gmail.com>
Sat, 25 Sep 2010 07:49:54 +0000 (07:49 +0000)
committerChe-Liang Chiou <clchiou@gmail.com>
Sat, 25 Sep 2010 07:49:54 +0000 (07:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114789 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PTX/ret.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PTX/ret.ll b/test/CodeGen/PTX/ret.ll
new file mode 100644 (file)
index 0000000..c129ffe
--- /dev/null
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=ptx | FileCheck %s
+
+define ptx_device void @t1() {
+;CHECK: ret;
+       ret void
+}