1;; Test disassembly for GRANULATED_WORKITEM_VGPR_COUNT in the kernel descriptor. 2 3; RUN: split-file %s %t.dir 4 5; RUN: llvm-mc %t.dir/1.s --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t1 6; RUN: llvm-objdump --disassemble-symbols=my_kernel_1.kd %t1 | tail -n +8 \ 7; RUN: | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t1-re-assemble 8; RUN: diff %t1 %t1-re-assemble 9 10; RUN: llvm-mc %t.dir/2.s --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t2 11; RUN: llvm-objdump --disassemble-symbols=my_kernel_2.kd %t2 | tail -n +8 \ 12; RUN: | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t2-re-assemble 13; RUN: diff %t2 %t2-re-assemble 14 15; RUN: llvm-mc %t.dir/3.s --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t3 16; RUN: llvm-objdump --disassemble-symbols=my_kernel_3.kd %t3 | tail -n +8 \ 17; RUN: | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx908 -filetype=obj -o %t3-re-assemble 18; RUN: diff %t3 %t3-re-assemble 19 20;--- 1.s 21.amdhsa_kernel my_kernel_1 22 .amdhsa_next_free_vgpr 23 23 .amdhsa_next_free_sgpr 0 24.end_amdhsa_kernel 25 26;--- 2.s 27.amdhsa_kernel my_kernel_2 28 .amdhsa_next_free_vgpr 14 29 .amdhsa_next_free_sgpr 0 30.end_amdhsa_kernel 31 32;--- 3.s 33.amdhsa_kernel my_kernel_3 34 .amdhsa_next_free_vgpr 32 35 .amdhsa_next_free_sgpr 0 36.end_amdhsa_kernel 37