1*3fdf3b15SKonstantin Zhuravlyov// RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj < %s > %t 21e8c2c70SScott Linder// RUN: llvm-objdump -s -j .rodata %t | FileCheck --check-prefix=OBJDUMP %s 31e8c2c70SScott Linder 41e8c2c70SScott Linder// Check that SGPR init bug on gfx803 is corrected by the assembler, setting 51e8c2c70SScott Linder// GRANULATED_WAVEFRONT_SGPR_COUNT to 11. 61e8c2c70SScott Linder 71e8c2c70SScott Linder// OBJDUMP: Contents of section .rodata 81e8c2c70SScott Linder// OBJDUMP-NEXT: 0000 00000000 00000000 00000000 00000000 91e8c2c70SScott Linder// OBJDUMP-NEXT: 0010 00000000 00000000 00000000 00000000 101e8c2c70SScott Linder// OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000000 111e8c2c70SScott Linder// OBJDUMP-NEXT: 0030 c002ac00 80000000 00000000 00000000 121e8c2c70SScott Linder 131e8c2c70SScott Linder.text 141e8c2c70SScott Linder 151e8c2c70SScott Linder.amdgcn_target "amdgcn-amd-amdhsa--gfx802" 161e8c2c70SScott Linder 171e8c2c70SScott Linder.p2align 8 181e8c2c70SScott Linderminimal: 191e8c2c70SScott Linder s_endpgm 201e8c2c70SScott Linder 211e8c2c70SScott Linder.rodata 221e8c2c70SScott Linder 231e8c2c70SScott Linder.amdhsa_kernel minimal 241e8c2c70SScott Linder .amdhsa_next_free_vgpr 0 251e8c2c70SScott Linder .amdhsa_next_free_sgpr 0 261e8c2c70SScott Linder.end_amdhsa_kernel 27