summaryrefslogtreecommitdiff
path: root/test/CodeGen/PTX
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-09-26 18:57:22 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-09-26 18:57:22 +0000
commit63602ed8769afc21e7085d95263475c6669deaaf (patch)
treedeb542a450e0fb9e85b0612f573d96a1a675bea5 /test/CodeGen/PTX
parent439780eeaef1a2c6a1105fb705a27c5c819e8d0e (diff)
downloadllvm-63602ed8769afc21e7085d95263475c6669deaaf.tar.gz
llvm-63602ed8769afc21e7085d95263475c6669deaaf.tar.bz2
llvm-63602ed8769afc21e7085d95263475c6669deaaf.tar.xz
PTX: Fix detection of stack load/store vs. global load/store, as well as fix the
printing of local offsets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX')
-rw-r--r--test/CodeGen/PTX/stack-object.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/PTX/stack-object.ll b/test/CodeGen/PTX/stack-object.ll
index aab7f51f1f..65f8ee2300 100644
--- a/test/CodeGen/PTX/stack-object.ll
+++ b/test/CodeGen/PTX/stack-object.ll
@@ -1,7 +1,7 @@
; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s
define ptx_device float @stack1(float %a) {
- ; CHECK: .local .align 4 .b32 __local0;
+ ; CHECK: .local .align 4 .b8 __local0[4];
%a.2 = alloca float, align 4
; CHECK: st.local.f32 [__local0], %f0
store float %a, float* %a.2
@@ -10,7 +10,7 @@ define ptx_device float @stack1(float %a) {
}
define ptx_device float @stack1_align8(float %a) {
- ; CHECK: .local .align 8 .b32 __local0;
+ ; CHECK: .local .align 8 .b8 __local0[4];
%a.2 = alloca float, align 8
; CHECK: st.local.f32 [__local0], %f0
store float %a, float* %a.2