diff options
author | Eric Christopher <echristo@apple.com> | 2010-09-18 18:52:28 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-09-18 18:52:28 +0000 |
commit | 50880d08ec32857fa557281046c81a0506e7f64d (patch) | |
tree | 6c9556b109d89b999fdc92088733123af2ac5bbf /test | |
parent | 168705049c55feec88aec65af0aef07fc1376ce6 (diff) | |
download | llvm-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.exp | 5 | ||||
-rw-r--r-- | test/CodeGen/PTX/exit.ll | 6 |
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 +} |