diff options
author | Justin Holewinski <justin.holewinski@gmail.com> | 2011-09-26 16:20:34 +0000 |
---|---|---|
committer | Justin Holewinski <justin.holewinski@gmail.com> | 2011-09-26 16:20:34 +0000 |
commit | 14defde057533655f710fc09122774ef5defcadc (patch) | |
tree | 936eacd797748673ee476489393d78ddcd6f31f8 /llvm/test/CodeGen/PTX/stack-object.ll | |
parent | 37fd87675f4d596f6dfb6c3154527087de602fb8 (diff) | |
download | bcm5719-llvm-14defde057533655f710fc09122774ef5defcadc.tar.gz bcm5719-llvm-14defde057533655f710fc09122774ef5defcadc.zip |
PTX: Fix some lingering issues with stack allocation
llvm-svn: 140535
Diffstat (limited to 'llvm/test/CodeGen/PTX/stack-object.ll')
-rw-r--r-- | llvm/test/CodeGen/PTX/stack-object.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PTX/stack-object.ll b/llvm/test/CodeGen/PTX/stack-object.ll new file mode 100644 index 00000000000..07cc0ab6d2d --- /dev/null +++ b/llvm/test/CodeGen/PTX/stack-object.ll @@ -0,0 +1,10 @@ +; 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: st.local.f32 [__local0], %f0 + store float %a, float* %a.2 + %a.3 = load float* %a.2 + ret float %a.3 +} |