1 // RUN
: llvm-mc
-mattr
=+code-object-v3
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx700
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX700
%s
2 // RUN
: llvm-mc
-mattr
=+code-object-v3
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx800
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX800
%s
3 // RUN
: llvm-mc
-mattr
=+code-object-v3
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx900
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX900
%s
5 // CHECK
: .amdgpu_metadata
6 // CHECK
: amdhsa.kernels
:
7 // CHECK
: - .group_segment_fixed_size: 24
8 // CHECK
: .kernarg_segment_align: 16
9 // CHECK
: .kernarg_segment_size: 24
10 // CHECK
: .max_flat_workgroup_size: 256
11 // CHECK
: .name: test_kernel
12 // CHECK
: .private_segment_fixed_size: 16
13 // CHECK
: .sgpr_count: 40
14 // CHECK
: .sgpr_spill_count: 1
15 // CHECK
: .symbol: 'test_kernel@kd'
16 // CHECK
: .vgpr_count: 14
17 // CHECK
: .vgpr_spill_count: 1
18 // CHECK
: .wavefront_size: 64
19 // CHECK
: amdhsa.version
:
31 .symbol: test_kernel@kd
32 .kernarg_segment_size: 24
33 .group_segment_fixed_size: 24
34 .private_segment_fixed_size: 16
35 .kernarg_segment_align: 16
37 .max_flat_workgroup_size: 256