aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s
blob: da4c8c1028d790a5925bc0142bb45ca67d737ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX700 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s

// CHECK:  .amdgpu_code_object_metadata
// CHECK:    Version: [ 1, 0 ]
// CHECK:    Kernels:
// CHECK:      - Name: test_kernel
// CHECK:        CodeProps:
// CHECK:          KernargSegmentSize:         24
// CHECK:          WorkitemPrivateSegmentSize: 16
// CHECK:          WavefrontNumSGPRs:          6
// CHECK:          WorkitemNumVGPRs:           12
.amdgpu_code_object_metadata
  Version: [ 1, 0 ]
  Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
  Kernels:
    - Name:            test_kernel
      CodeProps:
        KernargSegmentSize:         24
        WorkitemPrivateSegmentSize: 16
        WavefrontNumSGPRs:          6
        WorkitemNumVGPRs:           12
.end_amdgpu_code_object_metadata