2017-03-23 06:32:22 +08:00
|
|
|
// 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
|
|
|
|
|
2017-10-12 06:18:53 +08:00
|
|
|
// CHECK: .amd_amdgpu_hsa_metadata
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: Version: [ 1, 0 ]
|
2017-07-01 04:56:57 +08:00
|
|
|
// CHECK: Printf:
|
|
|
|
// CHECK: - '1:1:4:%d\n'
|
|
|
|
// CHECK: - '2:1:8:%g\n'
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: Kernels:
|
|
|
|
// CHECK: - Name: test_kernel
|
2017-10-15 03:03:51 +08:00
|
|
|
// CHECK: SymbolName: 'test_kernel@kd'
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: Language: OpenCL C
|
|
|
|
// CHECK: LanguageVersion: [ 2, 0 ]
|
|
|
|
// CHECK: Attrs:
|
|
|
|
// CHECK: ReqdWorkGroupSize: [ 1, 2, 4 ]
|
|
|
|
// CHECK: WorkGroupSizeHint: [ 8, 16, 32 ]
|
|
|
|
// CHECK: VecTypeHint: int
|
2017-10-12 06:18:53 +08:00
|
|
|
// CHECK: .end_amd_amdgpu_hsa_metadata
|
|
|
|
.amd_amdgpu_hsa_metadata
|
2017-03-23 06:32:22 +08:00
|
|
|
Version: [ 1, 0 ]
|
|
|
|
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
|
|
|
|
Kernels:
|
|
|
|
- Name: test_kernel
|
2017-10-15 03:03:51 +08:00
|
|
|
SymbolName: test_kernel@kd
|
2017-03-23 06:32:22 +08:00
|
|
|
Language: OpenCL C
|
|
|
|
LanguageVersion: [ 2, 0 ]
|
|
|
|
Attrs:
|
|
|
|
ReqdWorkGroupSize: [ 1, 2, 4 ]
|
|
|
|
WorkGroupSizeHint: [ 8, 16, 32 ]
|
|
|
|
VecTypeHint: int
|
2017-10-12 06:18:53 +08:00
|
|
|
.end_amd_amdgpu_hsa_metadata
|