1 // RUN
: not llvm-mc
-mattr
=+code-object-v3
-triple amdgcn-amd-amdhsa
-mcpu
=gfx803
-mattr
=+xnack
-show-encoding
%s
2>&1 >/dev
/null | FileCheck
%s
2 // RUN
: not llvm-mc
-mattr
=+code-object-v3
-triple amdgcn-amd-
-mcpu
=gfx803
-mattr
=+xnack
-show-encoding
%s
2>&1 >/dev
/null | FileCheck
%s
--check-prefix
=NOT-AMDHSA
6 .amdgcn_target "amdgcn--amdhsa-gfx803+xnack"
7 // CHECK
: error
: target must match options
10 // CHECK
: error
: unknown directive
14 .amdhsa_group_segment_fixed_size -1
15 // CHECK
: error
: value out of range
19 .amdhsa_group_segment_fixed_size 10000000000 + 1
20 // CHECK
: error
: value out of range
24 // NOT-AMDHSA
: error
: unknown directive
28 .amdhsa_group_segment_fixed_size 1
29 .amdhsa_group_segment_fixed_size 1
30 // CHECK
: error
: .amdhsa_ directives cannot be repeated
34 // CHECK
: error
: .amdhsa_next_free_vgpr directive is required
38 .amdhsa_next_free_vgpr 0
39 // CHECK
: error
: .amdhsa_next_free_sgpr directive is required
44 // CHECK
: error
: expected
.amdhsa_ directive or .end_amdhsa_kernel
47 .set .amdgcn.next_free_vgpr, "foo"
49 // CHECK
: error
: .amdgcn.next_free_{v,s}gpr symbols must be absolute expressions