[llvm-commits] [llvm] r140537 - /llvm/trunk/test/CodeGen/PTX/stack-object.ll
Justin Holewinski
justin.holewinski at gmail.com
Mon Sep 26 09:20:38 PDT 2011
Author: jholewinski
Date: Mon Sep 26 11:20:38 2011
New Revision: 140537
URL: http://llvm.org/viewvc/llvm-project?rev=140537&view=rev
Log:
PTX: Add .align tests to stack object test file
Modified:
llvm/trunk/test/CodeGen/PTX/stack-object.ll
Modified: llvm/trunk/test/CodeGen/PTX/stack-object.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PTX/stack-object.ll?rev=140537&r1=140536&r2=140537&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PTX/stack-object.ll (original)
+++ llvm/trunk/test/CodeGen/PTX/stack-object.ll Mon Sep 26 11:20:38 2011
@@ -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
More information about the llvm-commits
mailing list