1 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s 2>&1 | FileCheck --check-prefix=ERROR %s
3 ; ERROR: error: can't parse integer attribute -1 in amdgpu-max-num-workgroups
4 define amdgpu_kernel void @empty_max_num_workgroups_neg_num1() #21 {
8 attributes #21 = {"amdgpu-max-num-workgroups"="-1,2,3"}
10 ; ERROR: error: can't parse integer attribute -2 in amdgpu-max-num-workgroups
11 define amdgpu_kernel void @empty_max_num_workgroups_neg_num2() #22 {
15 attributes #22 = {"amdgpu-max-num-workgroups"="1,-2,3"}
17 ; ERROR: error: can't parse integer attribute -3 in amdgpu-max-num-workgroups
18 define amdgpu_kernel void @empty_max_num_workgroups_neg_num3() #23 {
22 attributes #23 = {"amdgpu-max-num-workgroups"="1,2,-3"}
24 ; ERROR: error: can't parse integer attribute 1.0 in amdgpu-max-num-workgroups
25 define amdgpu_kernel void @empty_max_num_workgroups_non_int1() #31 {
29 attributes #31 = {"amdgpu-max-num-workgroups"="1.0,2,3"}
31 ; ERROR: error: can't parse integer attribute 2.0 in amdgpu-max-num-workgroups
32 define amdgpu_kernel void @empty_max_num_workgroups_non_int2() #32 {
36 attributes #32 = {"amdgpu-max-num-workgroups"="1,2.0,3"}
38 ; ERROR: error: can't parse integer attribute 3.0 in amdgpu-max-num-workgroups
39 define amdgpu_kernel void @empty_max_num_workgroups_non_int3() #33 {
43 attributes #33 = {"amdgpu-max-num-workgroups"="1,2,3.0"}
45 ; ERROR: error: can't parse integer attribute 10000000000 in amdgpu-max-num-workgroups
46 define amdgpu_kernel void @empty_max_num_workgroups_too_large() #41 {
50 attributes #41 = {"amdgpu-max-num-workgroups"="10000000000,2,3"}
52 ; ERROR: error: attribute amdgpu-max-num-workgroups has incorrect number of integers; expected 3
53 define amdgpu_kernel void @empty_max_num_workgroups_1_arg() #51 {
57 attributes #51 = {"amdgpu-max-num-workgroups"="1"}
59 ; ERROR: error: attribute amdgpu-max-num-workgroups has incorrect number of integers; expected 3
60 define amdgpu_kernel void @empty_max_num_workgroups_2_args() #52 {
64 attributes #52 = {"amdgpu-max-num-workgroups"="1,2"}
66 ; ERROR: error: attribute amdgpu-max-num-workgroups has incorrect number of integers; expected 3
67 define amdgpu_kernel void @empty_max_num_workgroups_4_args() #53 {
71 attributes #53 = {"amdgpu-max-num-workgroups"="1,2,3,4"}