mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
63602ed876
printing of local offsets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140547 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
533 B
LLVM
20 lines
533 B
LLVM
; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s
|
|
|
|
define ptx_device float @stack1(float %a) {
|
|
; 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
|
|
%a.3 = load float* %a.2
|
|
ret float %a.3
|
|
}
|
|
|
|
define ptx_device float @stack1_align8(float %a) {
|
|
; 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
|
|
%a.3 = load float* %a.2
|
|
ret float %a.3
|
|
}
|