1 // RUN
: llvm-mc
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx700
-mattr
=-code-object-v3
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX700
%s
2 // RUN
: llvm-mc
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx800
-mattr
=-code-object-v3
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX800
%s
3 // RUN
: llvm-mc
-triple
=amdgcn-amd-amdhsa
-mcpu
=gfx900
-mattr
=-code-object-v3
-show-encoding
%s | FileCheck
--check-prefix
=CHECK
--check-prefix
=GFX900
%s
5 // CHECK
: .amd_amdgpu_hsa_metadata
6 // CHECK
: Version
: [ 1, 0 ]
8 // CHECK
: - '1:1:4:%d\n'
9 // CHECK
: - '2:1:8:%g\n'
11 // CHECK
: - Name
: test_kernel
12 // CHECK
: SymbolName
: 'test_kernel@kd'
13 // CHECK
: Language
: OpenCL C
14 // CHECK
: LanguageVersion
: [ 2, 0 ]
16 // CHECK
: ReqdWorkGroupSize
: [ 1, 2, 4 ]
17 // CHECK
: WorkGroupSizeHint
: [ 8, 16, 32 ]
18 // CHECK
: VecTypeHint
: int
19 // CHECK
: .end_amd_amdgpu_hsa_metadata
20 .amd_amdgpu_hsa_metadata
22 Printf
: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
25 SymbolName
: test_kernel@kd
27 LanguageVersion
: [ 2, 0 ]
29 ReqdWorkGroupSize
: [ 1, 2, 4 ]
30 WorkGroupSizeHint
: [ 8, 16, 32 ]
32 .end_amd_amdgpu_hsa_metadata