summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-18 18:52:28 +0000
committerEric Christopher <echristo@apple.com>2010-09-18 18:52:28 +0000
commit50880d08ec32857fa557281046c81a0506e7f64d (patch)
tree6c9556b109d89b999fdc92088733123af2ac5bbf /test
parent168705049c55feec88aec65af0aef07fc1376ce6 (diff)
downloadllvm-50880d08ec32857fa557281046c81a0506e7f64d.tar.gz
llvm-50880d08ec32857fa557281046c81a0506e7f64d.tar.bz2
llvm-50880d08ec32857fa557281046c81a0506e7f64d.tar.xz
Add the exit instruction to the PTX target.
Patch by Che-Liang Chiou <clchiou@gmail.com>! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PTX/dg.exp5
-rw-r--r--test/CodeGen/PTX/exit.ll6
2 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/dg.exp b/test/CodeGen/PTX/dg.exp
new file mode 100644
index 0000000000..2c304b5774
--- /dev/null
+++ b/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/test/CodeGen/PTX/exit.ll b/test/CodeGen/PTX/exit.ll
new file mode 100644
index 0000000000..e2b3857e36
--- /dev/null
+++ b/test/CodeGen/PTX/exit.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=ptx | FileCheck %s
+
+define void @t1() {
+;CHECK: exit;
+ ret void
+}