Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/AMDGPU/agpr-register-count.ll
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
bb: | bb: | ||||
call void asm sideeffect "", "~{v255}" () | call void asm sideeffect "", "~{v255}" () | ||||
call void asm sideeffect "", "~{a255}" () | call void asm sideeffect "", "~{a255}" () | ||||
ret void | ret void | ||||
} | } | ||||
; GCN-LABEL: {{^}}kernel_call_func_32_agprs: | ; GCN-LABEL: {{^}}kernel_call_func_32_agprs: | ||||
; GCN: .amdhsa_next_free_vgpr 32 | ; GCN: .amdhsa_next_free_vgpr 32 | ||||
; GCN: NumVgprs: 9 | ; GCN: NumVgprs: 32 | ||||
; GCN: NumAgprs: 32 | ; GCN: NumAgprs: 32 | ||||
; GCN: TotalNumVgprs: 32 | ; GCN: TotalNumVgprs: 32 | ||||
; GCN: VGPRBlocks: 7 | ; GCN: VGPRBlocks: 7 | ||||
; GCN: NumVGPRsForWavesPerEU: 32 | ; GCN: NumVGPRsForWavesPerEU: 32 | ||||
; GCN: Occupancy: 8 | ; GCN: Occupancy: 8 | ||||
define amdgpu_kernel void @kernel_call_func_32_agprs() { | define amdgpu_kernel void @kernel_call_func_32_agprs() { | ||||
bb: | bb: | ||||
call void @func_32_agprs() #0 | call void @func_32_agprs() #0 | ||||
ret void | ret void | ||||
} | } | ||||
; GCN-LABEL: {{^}}func_call_func_32_agprs: | ; GCN-LABEL: {{^}}func_call_func_32_agprs: | ||||
; GCN: NumVgprs: 9 | ; GCN: NumVgprs: 32 | ||||
; GCN: NumAgprs: 32 | ; GCN: NumAgprs: 32 | ||||
; GCN: TotalNumVgprs: 32 | ; GCN: TotalNumVgprs: 32 | ||||
define void @func_call_func_32_agprs() { | define void @func_call_func_32_agprs() { | ||||
bb: | bb: | ||||
call void @func_32_agprs() #0 | call void @func_32_agprs() #0 | ||||
ret void | ret void | ||||
} | } | ||||
declare void @undef_func() | declare void @undef_func() | ||||
; GCN-LABEL: {{^}}kernel_call_undef_func: | ; GCN-LABEL: {{^}}kernel_call_undef_func: | ||||
; GCN: .amdhsa_next_free_vgpr 24 | ; GCN: .amdhsa_next_free_vgpr 32 | ||||
; GCN: NumVgprs: 24 | ; GCN: NumVgprs: 32 | ||||
; GCN: NumAgprs: 24 | ; GCN: NumAgprs: 24 | ||||
; GCN: TotalNumVgprs: 24 | ; GCN: TotalNumVgprs: 32 | ||||
; GCN: VGPRBlocks: 5 | ; GCN: VGPRBlocks: 7 | ||||
; GCN: NumVGPRsForWavesPerEU: 24 | ; GCN: NumVGPRsForWavesPerEU: 32 | ||||
; GCN: Occupancy: 10 | ; GCN: Occupancy: 8 | ||||
define amdgpu_kernel void @kernel_call_undef_func() { | define amdgpu_kernel void @kernel_call_undef_func() { | ||||
bb: | bb: | ||||
call void @undef_func() | call void @undef_func() | ||||
ret void | ret void | ||||
} | } | ||||
attributes #0 = { nounwind noinline } | attributes #0 = { nounwind noinline } |