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: Printf: 8// CHECK: - '1:1:4:%d\n' 9// CHECK: - '2:1:8:%g\n' 10// CHECK: Kernels: 11// CHECK: - Name: test_kernel 12// CHECK: SymbolName: 'test_kernel@kd' 13// CHECK: Language: OpenCL C 14// CHECK: LanguageVersion: [ 2, 0 ] 15// CHECK: Attrs: 16// CHECK: ReqdWorkGroupSize: [ 1, 2, 4 ] 17// CHECK: WorkGroupSizeHint: [ 8, 16, 32 ] 18// CHECK: VecTypeHint: int 19// CHECK: .end_amd_amdgpu_hsa_metadata 20.amd_amdgpu_hsa_metadata 21 Version: [ 1, 0 ] 22 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] 23 Kernels: 24 - Name: test_kernel 25 SymbolName: test_kernel@kd 26 Language: OpenCL C 27 LanguageVersion: [ 2, 0 ] 28 Attrs: 29 ReqdWorkGroupSize: [ 1, 2, 4 ] 30 WorkGroupSizeHint: [ 8, 16, 32 ] 31 VecTypeHint: int 32.end_amd_amdgpu_hsa_metadata 33