1// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX700 %s
2// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
3// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s
4
5// CHECK:      	.amdgpu_metadata
6// CHECK:      amdhsa.kernels:
7// CHECK:        - .group_segment_fixed_size: 24
8// CHECK:          .kernarg_segment_align: 16
9// CHECK:          .kernarg_segment_size: 24
10// CHECK:          .max_flat_workgroup_size: 256
11// CHECK:          .name:           test_kernel
12// CHECK:          .private_segment_fixed_size: 16
13// CHECK:          .sgpr_count:     40
14// CHECK:          .sgpr_spill_count: 1
15// CHECK:          .symbol:         'test_kernel@kd'
16// CHECK:          .vgpr_count:     14
17// CHECK:          .vgpr_spill_count: 1
18// CHECK:          .wavefront_size: 64
19// CHECK:      amdhsa.version:
20// CHECK-NEXT:   - 1
21// CHECK-NEXT:   - 0
22.amdgpu_metadata
23  amdhsa.version:
24    - 1
25    - 0
26  amdhsa.printf:
27    - '1:1:4:%d\n'
28    - '2:1:8:%g\n'
29  amdhsa.kernels:
30    - .name:            test_kernel
31      .symbol:      test_kernel@kd
32      .kernarg_segment_size:      24
33      .group_segment_fixed_size:   24
34      .private_segment_fixed_size: 16
35      .kernarg_segment_align:     16
36      .wavefront_size:           64
37      .max_flat_workgroup_size:    256
38      .sgpr_count:               40
39      .vgpr_count:               14
40      .sgpr_spill_count:         1
41      .vgpr_spill_count:         1
42.end_amdgpu_metadata
43