summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/PTX/dg.exp5
-rw-r--r--llvm/test/CodeGen/PTX/exit.ll6
2 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PTX/dg.exp b/llvm/test/CodeGen/PTX/dg.exp
new file mode 100644
index 00000000000..2c304b57741
--- /dev/null
+++ b/llvm/test/CodeGen/PTX/dg.exp
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if { [llvm_supports_target PTX] } {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
diff --git a/llvm/test/CodeGen/PTX/exit.ll b/llvm/test/CodeGen/PTX/exit.ll
new file mode 100644
index 00000000000..e2b3857e369
--- /dev/null
+++ b/llvm/test/CodeGen/PTX/exit.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=ptx | FileCheck %s
+
+define void @t1() {
+;CHECK: exit;
+ ret void
+}
OpenPOWER on IntegriCloud