diff options
author | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2017-03-22 22:54:39 +0000 |
---|---|---|
committer | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2017-03-22 22:54:39 +0000 |
commit | ca0e7f64725a0480d29fe6fc268dc84658debc8c (patch) | |
tree | 7074e9fcbb12e2d206ed3a77fca994ac7c2b739e /llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s | |
parent | fd8510cfecdf808121d69f3a97c8578ecec30cf0 (diff) | |
download | bcm5719-llvm-ca0e7f64725a0480d29fe6fc268dc84658debc8c.tar.gz bcm5719-llvm-ca0e7f64725a0480d29fe6fc268dc84658debc8c.zip |
[AMDGPU] Emit kernel code properties as code object metadata
- These are not required for low level runtime
Differential Revision: https://reviews.llvm.org/D29949
llvm-svn: 298556
Diffstat (limited to 'llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s')
-rw-r--r-- | llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s b/llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s new file mode 100644 index 00000000000..d4fff55c8a2 --- /dev/null +++ b/llvm/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s @@ -0,0 +1,24 @@ +// 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 + +// CHECK: .amdgpu_code_object_metadata +// CHECK: Version: [ 1, 0 ] +// CHECK: Kernels: +// CHECK: - Name: test_kernel +// CHECK: CodeProps: +// CHECK: KernargSegmentSize: 24 +// CHECK: WorkitemPrivateSegmentSize: 16 +// CHECK: WavefrontNumSGPRs: 6 +// CHECK: WorkitemNumVGPRs: 12 +.amdgpu_code_object_metadata + Version: [ 1, 0 ] + Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] + Kernels: + - Name: test_kernel + CodeProps: + KernargSegmentSize: 24 + WorkitemPrivateSegmentSize: 16 + WavefrontNumSGPRs: 6 + WorkitemNumVGPRs: 12 +.end_amdgpu_code_object_metadata |