• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s
2
3define ptx_device float @stack1(float %a) {
4  ; CHECK: .local .align 4 .b8 __local0[4];
5  %a.2 = alloca float, align 4
6  ; CHECK: st.local.f32 [__local0], %f0
7  store float %a, float* %a.2
8  %a.3 = load float* %a.2
9  ret float %a.3
10}
11
12define ptx_device float @stack1_align8(float %a) {
13  ; CHECK: .local .align 8 .b8 __local0[4];
14  %a.2 = alloca float, align 8
15  ; CHECK: st.local.f32 [__local0], %f0
16  store float %a, float* %a.2
17  %a.3 = load float* %a.2
18  ret float %a.3
19}
20