brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 5ec1502 Raw
58 lines · plain
1; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx908 < %s | FileCheck -check-prefixes=CHECK,GFX908 %s2; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx90a < %s | FileCheck -check-prefixes=CHECK,GFX90A %s3; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx801 < %s | FileCheck -check-prefixes=CHECK,GFX801 %s4 5; COM: Comments for each kernel6; CHECK: kernel_32_agprs7; GFX908:   ; NumVgprs: 98; GFX908    ; NumAgprs: 329; GFX908    ; TotalNumVgprs: 3210 11; GFX90A:   ; NumVgprs: 912; GFX90A    ; NumAgprs: 3213; GFX90A    ; TotalNumVgprs: 4414 15; GFX801:   ; NumVgprs: 916 17; CHECK: kernel_40_vgprs18; GFX908:   ; NumVgprs: 4019; GFX908    ; NumAgprs: 1620; GFX908    ; TotalNumVgprs: 4021 22; GFX90A:   ; NumVgprs: 4023; GFX90A    ; NumAgprs: 1624; GFX90A    ; TotalNumVgprs: 5625 26; GFX801:   ; NumVgprs: 4027 28; COM: Metadata29; GFX908:    - .agpr_count:    3230; GFX908:      .vgpr_count:    3231 32; GFX90A:    - .agpr_count:    3233; GFX90A:      .vgpr_count:    4434 35; GFX801:      .vgpr_count:    936define amdgpu_kernel void @kernel_32_agprs() #0 {37bb:38  call void asm sideeffect "", "~{v8}" ()39  call void asm sideeffect "", "~{a31}" ()40  ret void41}42 43; GFX908:    - .agpr_count:    1644; GFX908:      .vgpr_count:    4045 46; GFX90A:    - .agpr_count:    1647; GFX90A:      .vgpr_count:    5648 49; GFX801:      .vgpr_count:    4050define amdgpu_kernel void @kernel_40_vgprs() #0 {51bb:52  call void asm sideeffect "", "~{v39}" ()53  call void asm sideeffect "", "~{a15}" ()54  ret void55}56 57attributes #0 = { nounwind noinline "amdgpu-flat-work-group-size"="1,512" }58