Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / SPIRV / transcoding / BuildNDRange.ll
blob95f3673d1c968deee7a249bcb59f262c689f28da
1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3 ; CHECK-SPIRV-DAG: %[[#]] = OpBuildNDRange %[[#]] %[[#GWS:]] %[[#LWS:]] %[[#GWO:]]
4 ; CHECK-SPIRV-DAG: %[[#GWS]] = OpConstant %[[#]] 123
5 ; CHECK-SPIRV-DAG: %[[#LWS]] = OpConstant %[[#]] 456
6 ; CHECK-SPIRV-DAG: %[[#GWO]] = OpConstant %[[#]] 0
8 %struct.ndrange_t = type { i32, [3 x i32], [3 x i32], [3 x i32] }
10 define spir_kernel void @test() {
11   %ndrange = alloca %struct.ndrange_t, align 4
12   call spir_func void @_Z10ndrange_1Djj(%struct.ndrange_t* sret(%struct.ndrange_t*) %ndrange, i32 123, i32 456)
13   ret void
16 declare spir_func void @_Z10ndrange_1Djj(%struct.ndrange_t* sret(%struct.ndrange_t*), i32, i32)