summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PTX/exit.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PTX/exit.ll')
-rw-r--r--test/CodeGen/PTX/exit.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/exit.ll b/test/CodeGen/PTX/exit.ll
new file mode 100644
index 0000000..4071bab
--- /dev/null
+++ b/test/CodeGen/PTX/exit.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -march=ptx | FileCheck %s
+
+define ptx_kernel void @t1() {
+; CHECK: exit;
+; CHECK-NOT: ret;
+ ret void
+}
+
+define ptx_kernel void @t2(i32* %p, i32 %x) {
+ store i32 %x, i32* %p
+; CHECK: exit;
+; CHECK-NOT: ret;
+ ret void
+}
OpenPOWER on IntegriCloud