1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3 ; CHECK-SPIRV: OpCapability Groups
4 ; CHECK-SPIRV: %[[#BoolTypeID:]] = OpTypeBool
5 ; CHECK-SPIRV: %[[#ConstID:]] = OpConstantTrue %[[#BoolTypeID]]
6 ; CHECK-SPIRV: %[[#]] = OpGroupAll %[[#BoolTypeID]] %[[#]] %[[#ConstID]]
7 ; CHECK-SPIRV: %[[#]] = OpGroupAny %[[#BoolTypeID]] %[[#]] %[[#ConstID]]
9 define spir_kernel void @test(i32 addrspace(1)* nocapture readnone %i) {
11 %call = tail call spir_func i32 @_Z14work_group_alli(i32 5)
12 %call1 = tail call spir_func i32 @_Z14work_group_anyi(i32 5)
16 declare spir_func i32 @_Z14work_group_alli(i32)
18 declare spir_func i32 @_Z14work_group_anyi(i32)