[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / AMDGPU / hsa-metadata-kernel-code-props.s
blobc8cc3cf3fc55235a39d5c7d491808a42d60dca06
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: Kernels:
8 // CHECK: - Name: test_kernel
9 // CHECK: SymbolName: 'test_kernel@kd'
10 // CHECK: CodeProps:
11 // CHECK: KernargSegmentSize: 24
12 // CHECK: GroupSegmentFixedSize: 24
13 // CHECK: PrivateSegmentFixedSize: 16
14 // CHECK: KernargSegmentAlign: 16
15 // CHECK: WavefrontSize: 64
16 // CHECK: MaxFlatWorkGroupSize: 256
17 // CHECK: NumSpilledSGPRs: 1
18 // CHECK: NumSpilledVGPRs: 1
19 .amd_amdgpu_hsa_metadata
20 Version: [ 1, 0 ]
21 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
22 Kernels:
23 - Name: test_kernel
24 SymbolName: test_kernel@kd
25 CodeProps:
26 KernargSegmentSize: 24
27 GroupSegmentFixedSize: 24
28 PrivateSegmentFixedSize: 16
29 KernargSegmentAlign: 16
30 WavefrontSize: 64
31 MaxFlatWorkGroupSize: 256
32 NumSpilledSGPRs: 1
33 NumSpilledVGPRs: 1
34 .end_amd_amdgpu_hsa_metadata