[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / AMDGPU / hsa-metadata-kernel-attrs.s
blobe19bf445e6af6921a26f5e757e68fb9b9237fd09
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 ]
7 // CHECK: Printf:
8 // CHECK: - '1:1:4:%d\n'
9 // CHECK: - '2:1:8:%g\n'
10 // CHECK: Kernels:
11 // CHECK: - Name: test_kernel
12 // CHECK: SymbolName: 'test_kernel@kd'
13 // CHECK: Language: OpenCL C
14 // CHECK: LanguageVersion: [ 2, 0 ]
15 // CHECK: Attrs:
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
21 Version: [ 1, 0 ]
22 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
23 Kernels:
24 - Name: test_kernel
25 SymbolName: test_kernel@kd
26 Language: OpenCL C
27 LanguageVersion: [ 2, 0 ]
28 Attrs:
29 ReqdWorkGroupSize: [ 1, 2, 4 ]
30 WorkGroupSizeHint: [ 8, 16, 32 ]
31 VecTypeHint: int
32 .end_amd_amdgpu_hsa_metadata