aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PTX
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-06-22 00:43:56 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-06-22 00:43:56 +0000
commita9c85f9ead525c51a682064c7200e2109a7ce7dc (patch)
tree8682f9412efad17ecd7a0d0ddaa7977a776d436c /test/CodeGen/PTX
parentf11bb7f80d17ce59918360fa268b8ed033253315 (diff)
downloadexternal_llvm-a9c85f9ead525c51a682064c7200e2109a7ce7dc.zip
external_llvm-a9c85f9ead525c51a682064c7200e2109a7ce7dc.tar.gz
external_llvm-a9c85f9ead525c51a682064c7200e2109a7ce7dc.tar.bz2
PTX: Add .address_size directive if PTX version >= 2.3
Patch by Wei-Ren Chen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX')
-rw-r--r--test/CodeGen/PTX/options.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/options.ll b/test/CodeGen/PTX/options.ll
index 92effa6..0fb6602 100644
--- a/test/CodeGen/PTX/options.ll
+++ b/test/CodeGen/PTX/options.ll
@@ -5,6 +5,8 @@
; RUN: llc < %s -march=ptx32 -mattr=sm10 | grep ".target sm_10"
; RUN: llc < %s -march=ptx32 -mattr=sm13 | grep ".target sm_13"
; RUN: llc < %s -march=ptx32 -mattr=sm20 | grep ".target sm_20"
+; RUN: llc < %s -march=ptx32 -mattr=ptx23 | grep ".address_size 32"
+; RUN: llc < %s -march=ptx64 -mattr=ptx23 | grep ".address_size 64"
define ptx_device void @t1() {
ret void