aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-16 16:01:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-16 16:01:22 +0000
commit71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch)
tree5343938942df402b49ec7300a1c25a2d4ccd5821 /test/MC/AMDGPU/code-object-metadata-kernel-code-props.s
parent31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff)
Diffstat (limited to 'test/MC/AMDGPU/code-object-metadata-kernel-code-props.s')
-rw-r--r--test/MC/AMDGPU/code-object-metadata-kernel-code-props.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s b/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s
new file mode 100644
index 000000000000..da4c8c1028d7
--- /dev/null
+++ b/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