Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / SPIRV / transcoding / OpGroupAllAny.ll
blob5f11ca2a474e91a301208c77b2602b8a3b14936e
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) {
10 entry:
11   %call = tail call spir_func i32 @_Z14work_group_alli(i32 5)
12   %call1 = tail call spir_func i32 @_Z14work_group_anyi(i32 5)
13   ret void
16 declare spir_func i32 @_Z14work_group_alli(i32)
18 declare spir_func i32 @_Z14work_group_anyi(i32)