42 lines · plain
1// RUN: not llvm-mc --amdhsa-code-object-version=4 -triple amdgcn-amd-amdhsa -mcpu=gfx90a %s -filetype=null 2>&1 | FileCheck -check-prefix=ERR %s2 3.amdhsa_kernel implied_count_too_low_04 .amdhsa_user_sgpr_count 05 .amdhsa_user_sgpr_queue_ptr 16 .amdhsa_accum_offset 47 .amdhsa_next_free_vgpr 328 .amdhsa_next_free_sgpr 329// ERR: :[[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs10.end_amdhsa_kernel11 12.amdhsa_kernel implied_count_too_low_113 .amdhsa_user_sgpr_count 114 .amdhsa_user_sgpr_queue_ptr 115 .amdhsa_accum_offset 416 .amdhsa_next_free_vgpr 3217 .amdhsa_next_free_sgpr 3218// ERR: :[[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs19.end_amdhsa_kernel20 21.amdhsa_kernel implied_count_too_low_222 .amdhsa_user_sgpr_count 223 .amdhsa_user_sgpr_queue_ptr 124 .amdhsa_user_sgpr_kernarg_preload_length 125 .amdhsa_accum_offset 426 .amdhsa_next_free_vgpr 3227 .amdhsa_next_free_sgpr 3228// ERR: :[[@LINE+1]]:19: error: amdgpu_user_sgpr_count smaller than than implied by enabled user SGPRs29.end_amdhsa_kernel30 31.amdhsa_kernel preload_out_of_bounds_032 .amdhsa_user_sgpr_count 433 .amdhsa_user_sgpr_queue_ptr 134 .amdhsa_user_sgpr_kernarg_preload_length 135 .amdhsa_user_sgpr_kernarg_preload_offset 136 .amdhsa_kernarg_size 437 .amdhsa_accum_offset 438 .amdhsa_next_free_vgpr 3239 .amdhsa_next_free_sgpr 3240// ERR: :[[@LINE+1]]:19: error: Kernarg preload length + offset is larger than the kernarg segment size41.end_amdhsa_kernel42