summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-09-26 16:20:38 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-09-26 16:20:38 +0000
commit55f340eb6200dc9e47d44b2622237766f97c6780 (patch)
treef97c3d7d96a91f5d59e9806a9c8d32dbc77cdb43
parentf8dd701bf98d0df4f2c41998717be51803728419 (diff)
downloadbcm5719-llvm-55f340eb6200dc9e47d44b2622237766f97c6780.tar.gz
bcm5719-llvm-55f340eb6200dc9e47d44b2622237766f97c6780.zip
PTX: Add .align tests to stack object test file
llvm-svn: 140537
-rw-r--r--llvm/test/CodeGen/PTX/stack-object.ll13
1 files changed, 11 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PTX/stack-object.ll b/llvm/test/CodeGen/PTX/stack-object.ll
index 07cc0ab6d2d..aab7f51f1f7 100644
--- a/llvm/test/CodeGen/PTX/stack-object.ll
+++ b/llvm/test/CodeGen/PTX/stack-object.ll
@@ -1,8 +1,17 @@
; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s
define ptx_device float @stack1(float %a) {
- ; CHECK: .local .b32 __local0;
- %a.2 = alloca float
+ ; CHECK: .local .align 4 .b32 __local0;
+ %a.2 = alloca float, align 4
+ ; CHECK: st.local.f32 [__local0], %f0
+ store float %a, float* %a.2
+ %a.3 = load float* %a.2
+ ret float %a.3
+}
+
+define ptx_device float @stack1_align8(float %a) {
+ ; CHECK: .local .align 8 .b32 __local0;
+ %a.2 = alloca float, align 8
; CHECK: st.local.f32 [__local0], %f0
store float %a, float* %a.2
%a.3 = load float* %a.2
OpenPOWER on IntegriCloud