1// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX700 %s 2// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s 3// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s 4 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: DebugProps: 11// CHECK: DebuggerABIVersion: [ 1, 0 ] 12// CHECK: ReservedNumVGPRs: 4 13// CHECK: ReservedFirstVGPR: 11 14// CHECK: PrivateSegmentBufferSGPR: 0 15// CHECK: WavefrontPrivateSegmentOffsetSGPR: 11 16.amd_amdgpu_hsa_metadata 17 Version: [ 1, 0 ] 18 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] 19 Kernels: 20 - Name: test_kernel 21 SymbolName: test_kernel@kd 22 DebugProps: 23 DebuggerABIVersion: [ 1, 0 ] 24 ReservedNumVGPRs: 4 25 ReservedFirstVGPR: 11 26 PrivateSegmentBufferSGPR: 0 27 WavefrontPrivateSegmentOffsetSGPR: 11 28.end_amd_amdgpu_hsa_metadata 29