brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 8f4cb36 Raw
81 lines · plain
1; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx90a < %s | FileCheck -check-prefixes=CHECK,GFX90A %s2; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx908 < %s | FileCheck -check-prefixes=CHECK,GFX908 %s3 4; COM: Adapted from agpr-register-count.ll5; COM: GFX900 and below should not have .agpr_count present in the metadata6 7 8; CHECK:      .type          kernel_32_agprs9; CHECK:      NumAgprs:       3210define amdgpu_kernel void @kernel_32_agprs() #0 {11bb:12  call void asm sideeffect "", "~{v8}" ()13  call void asm sideeffect "", "~{a31}" ()14  ret void15}16 17; CHECK:      .type          kernel_0_agprs18; CHECK:      NumAgprs:       019define amdgpu_kernel void @kernel_0_agprs() #0 {20bb:21  call void asm sideeffect "", "~{v0}" ()22  ret void23}24 25; CHECK:      .type           kernel_40_vgprs26; CHECK:      NumAgprs:       1627define amdgpu_kernel void @kernel_40_vgprs() #0 {28bb:29  call void asm sideeffect "", "~{v39}" ()30  call void asm sideeffect "", "~{a15}" ()31  ret void32}33 34; CHECK:      .type          kernel_max_gprs35; CHECK:      NumAgprs:       25636define amdgpu_kernel void @kernel_max_gprs() #0 {37bb:38  call void asm sideeffect "", "~{v255}" ()39  call void asm sideeffect "", "~{a255}" ()40  ret void41}42 43; CHECK:      .type          func_32_agprs44; CHECK:      NumAgprs:       3245define void @func_32_agprs() #0 {46bb:47  call void asm sideeffect "", "~{v8}" ()48  call void asm sideeffect "", "~{a31}" ()49  ret void50}51 52; CHECK:      .type          kernel_call_func_32_agprs53; CHECK:      NumAgprs:       3254define amdgpu_kernel void @kernel_call_func_32_agprs() #0 {55bb:56  call void @func_32_agprs() #057  ret void58}59 60declare void @undef_func()61 62; CHECK:      .type          kernel_call_undef_func63; CHECK:      .set kernel_call_undef_func.num_agpr, max(0, amdgpu.max_num_agpr)64; CHECK:      NumAgprs: kernel_call_undef_func.num_agpr65; CHECK:      .set amdgpu.max_num_agpr, 3266define amdgpu_kernel void @kernel_call_undef_func() #0 {67bb:68  call void @undef_func()69  ret void70}71 72; CHECK: ---73; CHECK:  amdpal.pipelines:74; GFX90A: agpr_count:  0x2075; GFX90A: vgpr_count:  0x4076 77; GFX908: agpr_count:  0x2078; GFX908: vgpr_count:  0x2079 80attributes #0 = { nounwind noinline "amdgpu-flat-work-group-size"="1,512" }81