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
: - .max_flat_workgroup_size: 256
8 // CHECK
: .wavefront_size: 128
9 // CHECK
: .symbol: 'test_kernel@kd'
10 // CHECK
: .reqd_workgroup_size:
14 // CHECK
: .kernarg_segment_size: 8
15 // CHECK
: .private_segment_fixed_size: 32
16 // CHECK
: .workgroup_size_hint:
20 // CHECK
: .name: test_kernel
21 // CHECK
: .language: OpenCL C
22 // CHECK
: .sgpr_count: 14
23 // CHECK
: .kernarg_segment_align: 64
24 // CHECK
: .vgpr_count: 40
25 // CHECK
: .language_version:
28 // CHECK
: .vec_type_hint: int
29 // CHECK
: amdhsa.version
:
32 // CHECK
: amdhsa.printf
:
33 // CHECK
: - '1:1:4:%d\n'
34 // CHECK
: - '2:1:8:%g\n'
35 // CHECK
: .end_amdgpu_metadata
45 .symbol: test_kernel@kd
50 .kernarg_segment_size: 8
51 .group_segment_fixed_size: 16
52 .private_segment_fixed_size: 32
53 .kernarg_segment_align: 64
57 .max_flat_workgroup_size: 256