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: .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.amd_amdgpu_hsa_metadata 18 Version: [ 1, 0 ] 19 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] 20 Kernels: 21 - Name: test_kernel 22 SymbolName: test_kernel@kd 23 CodeProps: 24 KernargSegmentSize: 24 25 GroupSegmentFixedSize: 24 26 PrivateSegmentFixedSize: 16 27 KernargSegmentAlign: 16 28 WavefrontSize: 64 29 MaxFlatWorkGroupSize: 256 30.end_amd_amdgpu_hsa_metadata 31