1 ; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck -check-prefixes=ALL,GFX908 %s
2 ; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a < %s | FileCheck -check-prefixes=ALL,GFX90A %s
4 ; CallGraphAnalysis, which CodeGenSCC order depends on, does not look
5 ; through aliases. If GlobalOpt is never run, we do not see direct
8 @alias = hidden alias void (), ptr @aliasee_default
10 ; ALL-LABEL: {{^}}kernel:
11 ; GFX908: .amdhsa_next_free_vgpr 32
12 ; GFX908-NEXT: .amdhsa_next_free_sgpr 36
14 ; GFX90A: .amdhsa_next_free_vgpr 65
15 ; GFX90A-NEXT: .amdhsa_next_free_sgpr 36
16 ; GFX90A-NEXT: .amdhsa_accum_offset 32
17 define amdgpu_kernel void @kernel() #0 {
23 define internal void @aliasee_default() #1 {
25 call void asm sideeffect "; clobber a26 ", "~{a26}"()
29 attributes #0 = { noinline norecurse nounwind optnone }
30 attributes #1 = { noinline norecurse nounwind readnone willreturn }
31 attributes #2 = { nounwind readnone willreturn }