summaryrefslogtreecommitdiff
path: root/test/CodeGen/PTX
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2010-11-30 10:14:14 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2010-11-30 10:14:14 +0000
commit21d8b9bcad1f058a4f2571dbc5a677e0ed95643e (patch)
treecd4dbec109470596b7f1de744893716d442db314 /test/CodeGen/PTX
parentc459d06ae6aaf95454425f678c18b600c21c6f36 (diff)
downloadllvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.tar.gz
llvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.tar.bz2
llvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.tar.xz
ptx: add command-line options for gpu target and ptx version
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX')
-rw-r--r--test/CodeGen/PTX/options.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/options.ll b/test/CodeGen/PTX/options.ll
new file mode 100644
index 0000000000..a14d5c9c27
--- /dev/null
+++ b/test/CodeGen/PTX/options.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=ptx -ptx-version=2.0 | grep ".version 2.0"
+; RUN: llc < %s -march=ptx -ptx-target=sm_20 | grep ".target sm_20"
+
+define ptx_device void @t1() {
+ ret void
+}