summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2019-06-17 16:48:56 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2019-06-17 16:48:56 +0000
commit5d00c3060e11b1b8725c0af110f011c4d110d39a (patch)
treed962c6e2237356210cecef017162f24512917c71 /llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll
parent8b1c53b52818aac8cbf5e9acb168e6315e5cbc6b (diff)
downloadbcm5719-llvm-5d00c3060e11b1b8725c0af110f011c4d110d39a.tar.gz
bcm5719-llvm-5d00c3060e11b1b8725c0af110f011c4d110d39a.zip
[AMDGPU] gfx1010 wave32 metadata
Differential Revision: https://reviews.llvm.org/D63207 llvm-svn: 363577
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll
new file mode 100644
index 00000000000..a30184d6814
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/hsa-metadata-wavefrontsize.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-code-object-v3,+wavefrontsize32,-wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX10-32 %s
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-code-object-v3,-wavefrontsize32,+wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX10-64 %s
+
+; GCN: ---
+; GCN: Kernels:
+; GCN: - Name: wavefrontsize
+; GCN: CodeProps:
+; GFX10-32: WavefrontSize: 32
+; GFX10-64: WavefrontSize: 64
+; GCN: ...
+define amdgpu_kernel void @wavefrontsize() {
+entry:
+ ret void
+}
OpenPOWER on IntegriCloud