You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
49
external/llvm/test/CodeGen/AMDGPU/large-alloca-graphics.ll
vendored
Normal file
49
external/llvm/test/CodeGen/AMDGPU/large-alloca-graphics.ll
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
; RUN: llc -march=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=GCN -check-prefix=CI -check-prefix=ALL %s
|
||||
; RUN: llc -march=amdgcn -mcpu=carrizo -mattr=-flat-for-global < %s | FileCheck -check-prefix=GCN -check-prefix=VI -check-prefix=ALL %s
|
||||
; RUN: llc -march=amdgcn -mcpu=gfx900 -mattr=-flat-for-global < %s | FileCheck -check-prefix=GCN -check-prefix=GFX9 -check-prefix=ALL %s
|
||||
|
||||
; ALL-LABEL: {{^}}large_alloca_pixel_shader:
|
||||
; GCN-DAG: s_mov_b32 s8, SCRATCH_RSRC_DWORD0
|
||||
; GCN-DAG: s_mov_b32 s9, SCRATCH_RSRC_DWORD1
|
||||
; GCN-DAG: s_mov_b32 s10, -1
|
||||
; CI-DAG: s_mov_b32 s11, 0xe8f000
|
||||
; VI-DAG: s_mov_b32 s11, 0xe80000
|
||||
; GFX9-DAG: s_mov_b32 s11, 0xe00000
|
||||
|
||||
; GCN: buffer_store_dword {{v[0-9]+}}, {{v[0-9]+}}, s[8:11], s0 offen
|
||||
; GCN: buffer_load_dword {{v[0-9]+}}, {{v[0-9]+}}, s[8:11], s0 offen
|
||||
|
||||
; ALL: ; ScratchSize: 32772
|
||||
define amdgpu_ps void @large_alloca_pixel_shader(i32 %x, i32 %y) #0 {
|
||||
%large = alloca [8192 x i32], align 4
|
||||
%gep = getelementptr [8192 x i32], [8192 x i32]* %large, i32 0, i32 8191
|
||||
store volatile i32 %x, i32* %gep
|
||||
%gep1 = getelementptr [8192 x i32], [8192 x i32]* %large, i32 0, i32 %y
|
||||
%val = load volatile i32, i32* %gep1
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
ret void
|
||||
}
|
||||
|
||||
; ALL-LABEL: {{^}}large_alloca_pixel_shader_inreg:
|
||||
; GCN-DAG: s_mov_b32 s8, SCRATCH_RSRC_DWORD0
|
||||
; GCN-DAG: s_mov_b32 s9, SCRATCH_RSRC_DWORD1
|
||||
; GCN-DAG: s_mov_b32 s10, -1
|
||||
; CI-DAG: s_mov_b32 s11, 0xe8f000
|
||||
; VI-DAG: s_mov_b32 s11, 0xe80000
|
||||
; GFX9-DAG: s_mov_b32 s11, 0xe00000
|
||||
|
||||
; GCN: buffer_store_dword {{v[0-9]+}}, {{v[0-9]+}}, s[8:11], s2 offen
|
||||
; GCN: buffer_load_dword {{v[0-9]+}}, {{v[0-9]+}}, s[8:11], s2 offen
|
||||
|
||||
; ALL: ; ScratchSize: 32772
|
||||
define amdgpu_ps void @large_alloca_pixel_shader_inreg(i32 inreg %x, i32 inreg %y) #0 {
|
||||
%large = alloca [8192 x i32], align 4
|
||||
%gep = getelementptr [8192 x i32], [8192 x i32]* %large, i32 0, i32 8191
|
||||
store volatile i32 %x, i32* %gep
|
||||
%gep1 = getelementptr [8192 x i32], [8192 x i32]* %large, i32 0, i32 %y
|
||||
%val = load volatile i32, i32* %gep1
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
ret void
|
||||
}
|
||||
|
||||
attributes #0 = { nounwind }
|
Reference in New Issue
Block a user