1 ; RUN: not llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s 2>&1 | FileCheck %s
3 ; CHECK: can't parse integer attribute amdgpu-num-sgpr
4 define amdgpu_kernel void @unparseable_single_0() #0 {
8 attributes #0 = {"amdgpu-num-sgpr"}
10 ; CHECK: can't parse integer attribute amdgpu-num-sgpr
11 define amdgpu_kernel void @unparseable_single_1() #1 {
15 attributes #1 = {"amdgpu-num-sgpr"="k"}
17 ; CHECK: can't parse integer attribute amdgpu-num-sgpr
18 define amdgpu_kernel void @unparseable_single_2() #2 {
22 attributes #2 = {"amdgpu-num-sgpr"="1,2"}
24 ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size
25 define amdgpu_kernel void @unparseable_pair_0() #3 {
29 attributes #3 = {"amdgpu-flat-work-group-size"}
31 ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size
32 define amdgpu_kernel void @unparseable_pair_1() #4 {
36 attributes #4 = {"amdgpu-flat-work-group-size"="k"}
38 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
39 define amdgpu_kernel void @unparseable_pair_2() #5 {
43 attributes #5 = {"amdgpu-flat-work-group-size"="1"}
45 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
46 define amdgpu_kernel void @unparseable_pair_3() #6 {
50 attributes #6 = {"amdgpu-flat-work-group-size"="1,k"}
52 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
53 define amdgpu_kernel void @unparseable_pair_4() #7 {
57 attributes #7 = {"amdgpu-flat-work-group-size"="1,2,3"}