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: Args:
|
2017-10-15 03:03:51 +08:00
|
|
|
// CHECK: - TypeName: char
|
|
|
|
// CHECK: Size: 1
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: Align: 1
|
2017-03-25 02:43:15 +08:00
|
|
|
// CHECK: ValueKind: ByValue
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: ValueType: I8
|
|
|
|
// CHECK: AccQual: Default
|
|
|
|
// CHECK: - Size: 8
|
|
|
|
// CHECK: Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
// CHECK: ValueKind: HiddenGlobalOffsetX
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: ValueType: I64
|
|
|
|
// CHECK: - Size: 8
|
|
|
|
// CHECK: Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
// CHECK: ValueKind: HiddenGlobalOffsetY
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: ValueType: I64
|
|
|
|
// CHECK: - Size: 8
|
|
|
|
// CHECK: Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
// CHECK: ValueKind: HiddenGlobalOffsetZ
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: ValueType: I64
|
|
|
|
// CHECK: - Size: 8
|
|
|
|
// CHECK: Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
// CHECK: ValueKind: HiddenPrintfBuffer
|
2017-03-23 06:32:22 +08:00
|
|
|
// CHECK: ValueType: I8
|
|
|
|
// CHECK: AddrSpaceQual: Global
|
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 ]
|
|
|
|
Args:
|
2017-10-15 03:03:51 +08:00
|
|
|
- TypeName: char
|
|
|
|
Size: 1
|
2017-03-23 06:32:22 +08:00
|
|
|
Align: 1
|
2017-03-25 02:43:15 +08:00
|
|
|
ValueKind: ByValue
|
2017-03-23 06:32:22 +08:00
|
|
|
ValueType: I8
|
|
|
|
AccQual: Default
|
|
|
|
- Size: 8
|
|
|
|
Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
ValueKind: HiddenGlobalOffsetX
|
2017-03-23 06:32:22 +08:00
|
|
|
ValueType: I64
|
|
|
|
- Size: 8
|
|
|
|
Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
ValueKind: HiddenGlobalOffsetY
|
2017-03-23 06:32:22 +08:00
|
|
|
ValueType: I64
|
|
|
|
- Size: 8
|
|
|
|
Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
ValueKind: HiddenGlobalOffsetZ
|
2017-03-23 06:32:22 +08:00
|
|
|
ValueType: I64
|
|
|
|
- Size: 8
|
|
|
|
Align: 8
|
2017-03-25 02:43:15 +08:00
|
|
|
ValueKind: HiddenPrintfBuffer
|
2017-03-23 06:32:22 +08:00
|
|
|
ValueType: I8
|
|
|
|
AddrSpaceQual: Global
|
2017-10-12 06:18:53 +08:00
|
|
|
.end_amd_amdgpu_hsa_metadata
|