diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2010-11-30 10:14:14 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2010-11-30 10:14:14 +0000 |
commit | 21d8b9bcad1f058a4f2571dbc5a677e0ed95643e (patch) | |
tree | cd4dbec109470596b7f1de744893716d442db314 /test/CodeGen/PTX | |
parent | c459d06ae6aaf95454425f678c18b600c21c6f36 (diff) | |
download | external_llvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.zip external_llvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.tar.gz external_llvm-21d8b9bcad1f058a4f2571dbc5a677e0ed95643e.tar.bz2 |
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.ll | 6 |
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 0000000..a14d5c9 --- /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 +} |