1 ;; Check translation of intel_reqd_sub_group_size metadata to SubgroupSize
2 ;; execution mode and back. The IR is producded from the following OpenCL C code:
3 ;; kernel __attribute__((intel_reqd_sub_group_size(8)))
6 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
8 ; CHECK-SPIRV: OpCapability SubgroupDispatch
9 ; CHECK-SPIRV: OpEntryPoint Kernel %[[#kernel:]] "foo"
10 ; CHECK-SPIRV: OpExecutionMode %[[#kernel]] SubgroupSize 8
12 define spir_kernel void @foo() !intel_reqd_sub_group_size !0 {