1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
2 ; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx900 < %s | FileCheck %s
5 ; CHECK: amdhsa.kernels:
7 ; CHECK-LABEL: .name: kernel_uniform_workgroup
8 ; CHECK: .uniform_work_group_size: 1
9 define amdgpu_kernel void @kernel_uniform_workgroup() #0 {
15 ; CHECK-LABEL: .name: kernel_non_uniform_workgroup
16 ; CHECK-NOT: .uniform_work_group_size:
17 define amdgpu_kernel void @kernel_non_uniform_workgroup() #1 {
23 ; CHECK-LABEL: .name: kernel_no_attr
24 ; CHECK-NOT: .uniform_work_group_size:
25 define amdgpu_kernel void @kernel_no_attr() {
29 attributes #0 = { "uniform-work-group-size"="true" }
30 attributes #1 = { "uniform-work-group-size"="false" }
32 !llvm.module.flags = !{!0}
33 !0 = !{i32 1, !"amdgpu_code_object_version", i32 500}