1; RUN: not llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s 2>&1 | FileCheck %s
2
3; CHECK: can't parse integer attribute amdgpu-num-sgpr
4define amdgpu_kernel void @unparseable_single_0() #0 {
5entry:
6  ret void
7}
8attributes #0 = {"amdgpu-num-sgpr"}
9
10; CHECK: can't parse integer attribute amdgpu-num-sgpr
11define amdgpu_kernel void @unparseable_single_1() #1 {
12entry:
13  ret void
14}
15attributes #1 = {"amdgpu-num-sgpr"="k"}
16
17; CHECK: can't parse integer attribute amdgpu-num-sgpr
18define amdgpu_kernel void @unparseable_single_2() #2 {
19entry:
20  ret void
21}
22attributes #2 = {"amdgpu-num-sgpr"="1,2"}
23
24; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size
25define amdgpu_kernel void @unparseable_pair_0() #3 {
26entry:
27  ret void
28}
29attributes #3 = {"amdgpu-flat-work-group-size"}
30
31; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size
32define amdgpu_kernel void @unparseable_pair_1() #4 {
33entry:
34  ret void
35}
36attributes #4 = {"amdgpu-flat-work-group-size"="k"}
37
38; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
39define amdgpu_kernel void @unparseable_pair_2() #5 {
40entry:
41  ret void
42}
43attributes #5 = {"amdgpu-flat-work-group-size"="1"}
44
45; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
46define amdgpu_kernel void @unparseable_pair_3() #6 {
47entry:
48  ret void
49}
50attributes #6 = {"amdgpu-flat-work-group-size"="1,k"}
51
52; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
53define amdgpu_kernel void @unparseable_pair_4() #7 {
54entry:
55  ret void
56}
57attributes #7 = {"amdgpu-flat-work-group-size"="1,2,3"}
58