diff --git a/modules/compiler/spirv-ll/source/builder.cpp b/modules/compiler/spirv-ll/source/builder.cpp index 8201913be..ced5069e2 100644 --- a/modules/compiler/spirv-ll/source/builder.cpp +++ b/modules/compiler/spirv-ll/source/builder.cpp @@ -912,6 +912,7 @@ llvm::Value *spirv_ll::Builder::createOCLBuiltinCall( case OpenCLLIB::SMul_hi: case OpenCLLIB::SSub_sat: case OpenCLLIB::SMul24: + case OpenCLLIB::SMad24: resMangleInfo = MangleInfo::getSigned(resTyId); for (auto &arg : argInfo) { arg.forceSign = MangleInfo::ForceSignInfo::ForceSigned; diff --git a/modules/compiler/spirv-ll/test/spvasm/CMakeLists.txt b/modules/compiler/spirv-ll/test/spvasm/CMakeLists.txt index 2cd79c3b7..4d9a076c9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/CMakeLists.txt +++ b/modules/compiler/spirv-ll/test/spvasm/CMakeLists.txt @@ -1086,30 +1086,6 @@ set(SPVASM_FILES op_opencl_s_add_sat_v8i32.spvasm op_opencl_s_add_sat_v8i64.spvasm op_opencl_s_add_sat_v8i8.spvasm - op_opencl_s_bitselect_i16.spvasm - op_opencl_s_bitselect_i32.spvasm - op_opencl_s_bitselect_i64.spvasm - op_opencl_s_bitselect_i8.spvasm - op_opencl_s_bitselect_v16i16.spvasm - op_opencl_s_bitselect_v16i32.spvasm - op_opencl_s_bitselect_v16i64.spvasm - op_opencl_s_bitselect_v16i8.spvasm - op_opencl_s_bitselect_v2i16.spvasm - op_opencl_s_bitselect_v2i32.spvasm - op_opencl_s_bitselect_v2i64.spvasm - op_opencl_s_bitselect_v2i8.spvasm - op_opencl_s_bitselect_v3i16.spvasm - op_opencl_s_bitselect_v3i32.spvasm - op_opencl_s_bitselect_v3i64.spvasm - op_opencl_s_bitselect_v3i8.spvasm - op_opencl_s_bitselect_v4i16.spvasm - op_opencl_s_bitselect_v4i32.spvasm - op_opencl_s_bitselect_v4i64.spvasm - op_opencl_s_bitselect_v4i8.spvasm - op_opencl_s_bitselect_v8i16.spvasm - op_opencl_s_bitselect_v8i32.spvasm - op_opencl_s_bitselect_v8i64.spvasm - op_opencl_s_bitselect_v8i8.spvasm op_opencl_s_clamp_i16.spvasm op_opencl_s_clamp_i32.spvasm op_opencl_s_clamp_i64.spvasm @@ -1134,30 +1110,6 @@ set(SPVASM_FILES op_opencl_s_clamp_v8i32.spvasm op_opencl_s_clamp_v8i64.spvasm op_opencl_s_clamp_v8i8.spvasm - op_opencl_s_clz_i16.spvasm - op_opencl_s_clz_i32.spvasm - op_opencl_s_clz_i64.spvasm - op_opencl_s_clz_i8.spvasm - op_opencl_s_clz_v16i16.spvasm - op_opencl_s_clz_v16i32.spvasm - op_opencl_s_clz_v16i64.spvasm - op_opencl_s_clz_v16i8.spvasm - op_opencl_s_clz_v2i16.spvasm - op_opencl_s_clz_v2i32.spvasm - op_opencl_s_clz_v2i64.spvasm - op_opencl_s_clz_v2i8.spvasm - op_opencl_s_clz_v3i16.spvasm - op_opencl_s_clz_v3i32.spvasm - op_opencl_s_clz_v3i64.spvasm - op_opencl_s_clz_v3i8.spvasm - op_opencl_s_clz_v4i16.spvasm - op_opencl_s_clz_v4i32.spvasm - op_opencl_s_clz_v4i64.spvasm - op_opencl_s_clz_v4i8.spvasm - op_opencl_s_clz_v8i16.spvasm - op_opencl_s_clz_v8i32.spvasm - op_opencl_s_clz_v8i64.spvasm - op_opencl_s_clz_v8i8.spvasm op_opencl_s_hadd_i16.spvasm op_opencl_s_hadd_i32.spvasm op_opencl_s_hadd_i64.spvasm @@ -1314,78 +1266,6 @@ set(SPVASM_FILES op_opencl_s_mul_hi_v8i32.spvasm op_opencl_s_mul_hi_v8i64.spvasm op_opencl_s_mul_hi_v8i8.spvasm - op_opencl_s_popcount_i16.spvasm - op_opencl_s_popcount_i32.spvasm - op_opencl_s_popcount_i64.spvasm - op_opencl_s_popcount_i8.spvasm - op_opencl_s_popcount_v16i16.spvasm - op_opencl_s_popcount_v16i32.spvasm - op_opencl_s_popcount_v16i64.spvasm - op_opencl_s_popcount_v16i8.spvasm - op_opencl_s_popcount_v2i16.spvasm - op_opencl_s_popcount_v2i32.spvasm - op_opencl_s_popcount_v2i64.spvasm - op_opencl_s_popcount_v2i8.spvasm - op_opencl_s_popcount_v3i16.spvasm - op_opencl_s_popcount_v3i32.spvasm - op_opencl_s_popcount_v3i64.spvasm - op_opencl_s_popcount_v3i8.spvasm - op_opencl_s_popcount_v4i16.spvasm - op_opencl_s_popcount_v4i32.spvasm - op_opencl_s_popcount_v4i64.spvasm - op_opencl_s_popcount_v4i8.spvasm - op_opencl_s_popcount_v8i16.spvasm - op_opencl_s_popcount_v8i32.spvasm - op_opencl_s_popcount_v8i64.spvasm - op_opencl_s_popcount_v8i8.spvasm - op_opencl_s_prefetch_i16_32bit.spvasm - op_opencl_s_prefetch_i16_64bit.spvasm - op_opencl_s_prefetch_i32_32bit.spvasm - op_opencl_s_prefetch_i32_64bit.spvasm - op_opencl_s_prefetch_i64_32bit.spvasm - op_opencl_s_prefetch_i64_64bit.spvasm - op_opencl_s_prefetch_i8_32bit.spvasm - op_opencl_s_prefetch_i8_64bit.spvasm - op_opencl_s_prefetch_v16i16_32bit.spvasm - op_opencl_s_prefetch_v16i16_64bit.spvasm - op_opencl_s_prefetch_v16i32_32bit.spvasm - op_opencl_s_prefetch_v16i32_64bit.spvasm - op_opencl_s_prefetch_v16i64_32bit.spvasm - op_opencl_s_prefetch_v16i64_64bit.spvasm - op_opencl_s_prefetch_v16i8_32bit.spvasm - op_opencl_s_prefetch_v16i8_64bit.spvasm - op_opencl_s_prefetch_v2i16_32bit.spvasm - op_opencl_s_prefetch_v2i16_64bit.spvasm - op_opencl_s_prefetch_v2i32_32bit.spvasm - op_opencl_s_prefetch_v2i32_64bit.spvasm - op_opencl_s_prefetch_v2i64_32bit.spvasm - op_opencl_s_prefetch_v2i64_64bit.spvasm - op_opencl_s_prefetch_v2i8_32bit.spvasm - op_opencl_s_prefetch_v2i8_64bit.spvasm - op_opencl_s_prefetch_v3i16_32bit.spvasm - op_opencl_s_prefetch_v3i16_64bit.spvasm - op_opencl_s_prefetch_v3i32_32bit.spvasm - op_opencl_s_prefetch_v3i32_64bit.spvasm - op_opencl_s_prefetch_v3i64_32bit.spvasm - op_opencl_s_prefetch_v3i64_64bit.spvasm - op_opencl_s_prefetch_v3i8_32bit.spvasm - op_opencl_s_prefetch_v3i8_64bit.spvasm - op_opencl_s_prefetch_v4i16_32bit.spvasm - op_opencl_s_prefetch_v4i16_64bit.spvasm - op_opencl_s_prefetch_v4i32_32bit.spvasm - op_opencl_s_prefetch_v4i32_64bit.spvasm - op_opencl_s_prefetch_v4i64_32bit.spvasm - op_opencl_s_prefetch_v4i64_64bit.spvasm - op_opencl_s_prefetch_v4i8_32bit.spvasm - op_opencl_s_prefetch_v4i8_64bit.spvasm - op_opencl_s_prefetch_v8i16_32bit.spvasm - op_opencl_s_prefetch_v8i16_64bit.spvasm - op_opencl_s_prefetch_v8i32_32bit.spvasm - op_opencl_s_prefetch_v8i32_64bit.spvasm - op_opencl_s_prefetch_v8i64_32bit.spvasm - op_opencl_s_prefetch_v8i64_64bit.spvasm - op_opencl_s_prefetch_v8i8_32bit.spvasm - op_opencl_s_prefetch_v8i8_64bit.spvasm op_opencl_s_rhadd_i16.spvasm op_opencl_s_rhadd_i32.spvasm op_opencl_s_rhadd_i64.spvasm @@ -1410,98 +1290,6 @@ set(SPVASM_FILES op_opencl_s_rhadd_v8i32.spvasm op_opencl_s_rhadd_v8i64.spvasm op_opencl_s_rhadd_v8i8.spvasm - op_opencl_s_rotate_i16.spvasm - op_opencl_s_rotate_i32.spvasm - op_opencl_s_rotate_i64.spvasm - op_opencl_s_rotate_i8.spvasm - op_opencl_s_rotate_v16i16.spvasm - op_opencl_s_rotate_v16i32.spvasm - op_opencl_s_rotate_v16i64.spvasm - op_opencl_s_rotate_v16i8.spvasm - op_opencl_s_rotate_v2i16.spvasm - op_opencl_s_rotate_v2i32.spvasm - op_opencl_s_rotate_v2i64.spvasm - op_opencl_s_rotate_v2i8.spvasm - op_opencl_s_rotate_v3i16.spvasm - op_opencl_s_rotate_v3i32.spvasm - op_opencl_s_rotate_v3i64.spvasm - op_opencl_s_rotate_v3i8.spvasm - op_opencl_s_rotate_v4i16.spvasm - op_opencl_s_rotate_v4i32.spvasm - op_opencl_s_rotate_v4i64.spvasm - op_opencl_s_rotate_v4i8.spvasm - op_opencl_s_rotate_v8i16.spvasm - op_opencl_s_rotate_v8i32.spvasm - op_opencl_s_rotate_v8i64.spvasm - op_opencl_s_rotate_v8i8.spvasm - op_opencl_s_select_double.spvasm - op_opencl_s_select_float.spvasm - op_opencl_s_select_i16.spvasm - op_opencl_s_select_i32.spvasm - op_opencl_s_select_i64.spvasm - op_opencl_s_select_i8.spvasm - op_opencl_s_select_v16double.spvasm - op_opencl_s_select_v16float.spvasm - op_opencl_s_select_v16i16.spvasm - op_opencl_s_select_v16i32.spvasm - op_opencl_s_select_v16i64.spvasm - op_opencl_s_select_v16i8.spvasm - op_opencl_s_select_v2double.spvasm - op_opencl_s_select_v2float.spvasm - op_opencl_s_select_v2i16.spvasm - op_opencl_s_select_v2i32.spvasm - op_opencl_s_select_v2i64.spvasm - op_opencl_s_select_v2i8.spvasm - op_opencl_s_select_v3double.spvasm - op_opencl_s_select_v3float.spvasm - op_opencl_s_select_v3i16.spvasm - op_opencl_s_select_v3i32.spvasm - op_opencl_s_select_v3i64.spvasm - op_opencl_s_select_v3i8.spvasm - op_opencl_s_select_v4double.spvasm - op_opencl_s_select_v4float.spvasm - op_opencl_s_select_v4i16.spvasm - op_opencl_s_select_v4i32.spvasm - op_opencl_s_select_v4i64.spvasm - op_opencl_s_select_v4i8.spvasm - op_opencl_s_select_v8double.spvasm - op_opencl_s_select_v8float.spvasm - op_opencl_s_select_v8i16.spvasm - op_opencl_s_select_v8i32.spvasm - op_opencl_s_select_v8i64.spvasm - op_opencl_s_select_v8i8.spvasm - op_opencl_s_shuffle2_v16i16.spvasm - op_opencl_s_shuffle2_v16i32.spvasm - op_opencl_s_shuffle2_v16i64.spvasm - op_opencl_s_shuffle2_v16i8.spvasm - op_opencl_s_shuffle2_v2i16.spvasm - op_opencl_s_shuffle2_v2i32.spvasm - op_opencl_s_shuffle2_v2i64.spvasm - op_opencl_s_shuffle2_v2i8.spvasm - op_opencl_s_shuffle2_v4i16.spvasm - op_opencl_s_shuffle2_v4i32.spvasm - op_opencl_s_shuffle2_v4i64.spvasm - op_opencl_s_shuffle2_v4i8.spvasm - op_opencl_s_shuffle2_v8i16.spvasm - op_opencl_s_shuffle2_v8i32.spvasm - op_opencl_s_shuffle2_v8i64.spvasm - op_opencl_s_shuffle2_v8i8.spvasm - op_opencl_s_shuffle_v16i16.spvasm - op_opencl_s_shuffle_v16i32.spvasm - op_opencl_s_shuffle_v16i64.spvasm - op_opencl_s_shuffle_v16i8.spvasm - op_opencl_s_shuffle_v2i16.spvasm - op_opencl_s_shuffle_v2i32.spvasm - op_opencl_s_shuffle_v2i64.spvasm - op_opencl_s_shuffle_v2i8.spvasm - op_opencl_s_shuffle_v4i16.spvasm - op_opencl_s_shuffle_v4i32.spvasm - op_opencl_s_shuffle_v4i64.spvasm - op_opencl_s_shuffle_v4i8.spvasm - op_opencl_s_shuffle_v8i16.spvasm - op_opencl_s_shuffle_v8i32.spvasm - op_opencl_s_shuffle_v8i64.spvasm - op_opencl_s_shuffle_v8i8.spvasm op_opencl_s_sub_sat_i16.spvasm op_opencl_s_sub_sat_i32.spvasm op_opencl_s_sub_sat_i64.spvasm diff --git a/modules/compiler/spirv-ll/test/spvasm/op_constant_sampler_2d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_constant_sampler_2d.spvasm index ad140f14b..eb0110b32 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_constant_sampler_2d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_constant_sampler_2d.spvasm @@ -27,7 +27,6 @@ OpName %in_image "in_image" %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2uint_t = OpTypeVector %uint_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_float.spvasm index 6e301a9d8..2b89c5a65 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_float.spvasm @@ -34,13 +34,12 @@ OpName %f "f" %void = OpTypeVoid %3 = OpTypeFunction %void -%struct_float = OpTypeFloat 32 -%_ptr_Function_float = OpTypePointer Function %struct_float -%float = OpTypeFloat 32 ; this should be blank if type is Foo - %9 = OpConstant %struct_float 42.42 + %float = OpTypeFloat 32 +%_ptr_Function_float = OpTypePointer Function %float + %9 = OpConstant %float 42.42 %struct_int = OpTypeInt 32 0 OpTypeForwardPointer %ptr_float Function - %Foo = OpTypeStruct %struct_int %struct_float %ptr_float + %Foo = OpTypeStruct %struct_int %float %ptr_float %ptr_float = OpTypePointer Function %float ; this should be blank if type is Foo %ptr_Foo = OpTypePointer Function %Foo %14 = OpConstant %struct_int 1 @@ -49,8 +48,8 @@ %res = OpVariable %_ptr_Function_float Function %f = OpVariable %ptr_Foo Function %15 = OpInBoundsAccessChain %_ptr_Function_float %f %14 - %16 = OpLoad %struct_float %15 - %17 = OpFAdd %struct_float %9 %16 + %16 = OpLoad %float %15 + %17 = OpFAdd %float %9 %16 OpStore %res %17 OpReturn OpFunctionEnd diff --git a/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_uint.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_uint.spvasm index 3ecce48a1..03decb624 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_uint.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_forward_pointer_uint.spvasm @@ -39,13 +39,12 @@ %_ptr_Function_float = OpTypePointer Function %float %uint = OpTypeInt 32 0 ; this should be blank if type is Foo %9 = OpConstant %float 42.42 - %struct_int = OpTypeInt 32 0 OpTypeForwardPointer %ptr_uint Function - %Foo = OpTypeStruct %struct_int %float %ptr_uint + %Foo = OpTypeStruct %uint %float %ptr_uint ; CHECK: [[Foo:%[a-zA-Z0-9_]+]] = type { i32, float, ptr } %ptr_uint = OpTypePointer Function %uint ; this should be blank if type is Foo %ptr_Foo = OpTypePointer Function %Foo - %14 = OpConstant %struct_int 1 + %14 = OpConstant %uint 1 %main = OpFunction %void None %3 ; CHECK: define spir_kernel void @main() %5 = OpLabel diff --git a/modules/compiler/spirv-ll/test/spvasm/op_group_broadcast.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_group_broadcast.spvasm index 9d2f32e9a..888e35593 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_group_broadcast.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_group_broadcast.spvasm @@ -32,17 +32,15 @@ OpEntryPoint Kernel %bool_broadcast_fcn "bool_broadcast" %uint_ty = OpTypeInt 32 0 - %int_ty = OpTypeInt 32 1 %float_ty = OpTypeFloat 32 %bool_ty = OpTypeBool %ptr_CrossWorkgroup_uint_ty = OpTypePointer CrossWorkgroup %uint_ty - %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %int_ty %ptr_CrossWorkgroup_float_ty = OpTypePointer CrossWorkgroup %float_ty %ptr_CrossWorkgroup_bool_ty = OpTypePointer CrossWorkgroup %bool_ty %void_ty = OpTypeVoid %uint_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_uint_ty %uint_uint_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_uint_ty %uint_ty - %int_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_int_ty + %int_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_uint_ty %float_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_float_ty %bool_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_bool_ty @@ -105,20 +103,18 @@ ; CHCK-LABEL: int_broadcast ; CHECK: define spir_kernel void @int_broadcast(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) %int_broadcast_fcn = OpFunction %void_ty None %int_fcn_ty - %int_broadcast_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty + %int_broadcast_in = OpFunctionParameter %ptr_CrossWorkgroup_uint_ty %int_broadcast_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %int_broadcast_val = OpLoad %int_ty %int_broadcast_in Aligned 4 -; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z19sub_group_broadcastij(i32 [[VAL]], i32 0) - %int_broadcast_res = OpGroupBroadcast %int_ty %sub_group_scope %int_broadcast_val %zero + %int_broadcast_val = OpLoad %uint_ty %int_broadcast_in Aligned 4 +; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z19sub_group_broadcastjj(i32 [[VAL]], i32 0) + %int_broadcast_res = OpGroupBroadcast %uint_ty %sub_group_scope %int_broadcast_val %zero ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %int_broadcast_in %int_broadcast_res Aligned 4 ; CHECK: ret void OpReturn OpFunctionEnd -; CHECK: declare spir_func i32 @_Z19sub_group_broadcastij(i32, i32) - ; CHCK-LABEL: float_broadcast ; CHECK: define spir_kernel void @float_broadcast(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) %float_broadcast_fcn = OpFunction %void_ty None %float_fcn_ty diff --git a/modules/compiler/spirv-ll/test/spvasm/op_group_i_add.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_group_i_add.spvasm index c803515c7..77355c6dc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_group_i_add.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_group_i_add.spvasm @@ -27,20 +27,14 @@ OpEntryPoint Kernel %uint_sub_group_reduction_fcn "uint_sub_group_reduction" OpEntryPoint Kernel %uint_work_group_reduction_fcn "uint_work_group_reduction" OpEntryPoint Kernel %uint_variable_scope_reduction_fcn "uint_variable_scope_reduction" - OpEntryPoint Kernel %int_sub_group_reduction_fcn "int_sub_group_reduction" OpEntryPoint Kernel %uint_sub_group_scan_inc_fcn "uint_sub_group_scan_inclusive" - OpEntryPoint Kernel %int_sub_group_scan_inc_fcn "int_sub_group_scan_inclusive" OpEntryPoint Kernel %uint_sub_group_scan_exc_fcn "uint_sub_group_scan_exclusive" - OpEntryPoint Kernel %int_sub_group_scan_exc_fcn "int_sub_group_scan_exclusive" %uint_ty = OpTypeInt 32 0 - %int_ty = OpTypeInt 32 1 %ptr_CrossWorkgroup_uint_ty = OpTypePointer CrossWorkgroup %uint_ty - %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %int_ty %void_ty = OpTypeVoid %uint_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_uint_ty %uint_uint_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_uint_ty %uint_ty - %int_fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_int_ty %sub_group_scope = OpConstant %uint_ty 3 %work_group_scope = OpConstant %uint_ty 2 @@ -48,11 +42,8 @@ OpName %uint_sub_group_reduction_in "a" OpName %uint_work_group_reduction_in "a" OpName %uint_variable_scope_reduction_in "a" - OpName %int_sub_group_reduction_in "a" OpName %uint_sub_group_scan_inc_in "a" - OpName %int_sub_group_scan_inc_in "a" OpName %uint_sub_group_scan_exc_in "a" - OpName %int_sub_group_scan_exc_in "a" ; CHCK-LABEL: uint_sub_group_reduction ; CHECK: define spir_kernel void @uint_sub_group_reduction(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) @@ -101,23 +92,6 @@ OpReturn OpFunctionEnd -; CHCK-LABEL: int_sub_group_reduction -; CHECK: define spir_kernel void @int_sub_group_reduction(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) - %int_sub_group_reduction_fcn = OpFunction %void_ty None %int_fcn_ty - %int_sub_group_reduction_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty - %int_sub_group_reduction_bb = OpLabel - ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %int_sub_group_reduction_val = OpLoad %int_ty %int_sub_group_reduction_in Aligned 4 - ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z20sub_group_reduce_addi(i32 [[VAL]]) - %int_sub_group_reduction_res = OpGroupIAdd %int_ty %sub_group_scope Reduce %int_sub_group_reduction_val - ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] - OpStore %int_sub_group_reduction_in %int_sub_group_reduction_res Aligned 4 - ; CHECK: ret void - OpReturn - OpFunctionEnd - - ; CHECK: declare spir_func i32 @_Z20sub_group_reduce_addi(i32) - ; CHCK-LABEL: uint_sub_group_inclusive_scan ; CHECK: define spir_kernel void @uint_sub_group_scan_inclusive(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) %uint_sub_group_scan_inc_fcn = OpFunction %void_ty None %uint_fcn_ty @@ -133,20 +107,3 @@ OpReturn OpFunctionEnd ; CHECK: declare spir_func i32 @_Z28sub_group_scan_inclusive_addj(i32) - -; CHCK-LABEL: int_sub_group_exclusive_scan -; CHECK: define spir_kernel void @int_sub_group_scan_exclusive(ptr addrspace(1) [[IN:%[a-zA-Z0-9_]+]]) - %int_sub_group_scan_exc_fcn = OpFunction %void_ty None %int_fcn_ty - %int_sub_group_scan_exc_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty - %int_sub_group_scan_exc_bb = OpLabel - ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %int_sub_group_scan_exc_val = OpLoad %int_ty %int_sub_group_scan_exc_in Aligned 4 - ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z28sub_group_scan_exclusive_addi(i32 [[VAL]]) - %int_sub_group_scan_exc_res = OpGroupIAdd %int_ty %sub_group_scope ExclusiveScan %int_sub_group_scan_exc_val - ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] - OpStore %int_sub_group_scan_exc_in %int_sub_group_scan_exc_res Aligned 4 - ; CHECK: ret void - OpReturn - OpFunctionEnd - - ; CHECK: declare spir_func i32 @_Z28sub_group_scan_exclusive_addi(i32) diff --git a/modules/compiler/spirv-ll/test/spvasm/op_group_s_max.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_group_s_max.spvasm index 003c023fe..ad730e0e0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_group_s_max.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_group_s_max.spvasm @@ -29,8 +29,7 @@ OpEntryPoint Kernel %sub_group_scan_exc_fcn "sub_group_scan_exclusive" %uint_ty = OpTypeInt 32 0 - %int_ty = OpTypeInt 32 1 - %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %int_ty + %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %uint_ty %void_ty = OpTypeVoid %fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_int_ty @@ -45,9 +44,9 @@ %sub_group_reduction_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_reduction_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_reduction_val = OpLoad %int_ty %sub_group_reduction_in Aligned 4 + %sub_group_reduction_val = OpLoad %uint_ty %sub_group_reduction_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z20sub_group_reduce_maxi(i32 [[VAL]]) - %sub_group_reduction_res = OpGroupSMax %int_ty %sub_group_scope Reduce %sub_group_reduction_val + %sub_group_reduction_res = OpGroupSMax %uint_ty %sub_group_scope Reduce %sub_group_reduction_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_reduction_in %sub_group_reduction_res Aligned 4 ; CHECK: ret void @@ -61,9 +60,9 @@ %sub_group_scan_inc_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_scan_inc_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_scan_inc_val = OpLoad %int_ty %sub_group_scan_inc_in Aligned 4 + %sub_group_scan_inc_val = OpLoad %uint_ty %sub_group_scan_inc_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z28sub_group_scan_inclusive_maxi(i32 [[VAL]]) - %sub_group_scan_inc_res = OpGroupSMax %int_ty %sub_group_scope InclusiveScan %sub_group_scan_inc_val + %sub_group_scan_inc_res = OpGroupSMax %uint_ty %sub_group_scope InclusiveScan %sub_group_scan_inc_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_scan_inc_in %sub_group_scan_inc_res Aligned 4 ; CHECK: ret void @@ -77,9 +76,9 @@ %sub_group_scan_exc_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_scan_exc_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_scan_exc_val = OpLoad %int_ty %sub_group_scan_exc_in Aligned 4 + %sub_group_scan_exc_val = OpLoad %uint_ty %sub_group_scan_exc_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z28sub_group_scan_exclusive_maxi(i32 [[VAL]]) - %sub_group_scan_exc_res = OpGroupSMax %int_ty %sub_group_scope ExclusiveScan %sub_group_scan_exc_val + %sub_group_scan_exc_res = OpGroupSMax %uint_ty %sub_group_scope ExclusiveScan %sub_group_scan_exc_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_scan_exc_in %sub_group_scan_exc_res Aligned 4 ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_group_s_min.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_group_s_min.spvasm index 81cc5c077..440b4c613 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_group_s_min.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_group_s_min.spvasm @@ -30,8 +30,7 @@ OpEntryPoint Kernel %sub_group_scan_inc_fcn "sub_group_scan_inclusive" %uint_ty = OpTypeInt 32 0 - %int_ty = OpTypeInt 32 1 - %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %int_ty + %ptr_CrossWorkgroup_int_ty = OpTypePointer CrossWorkgroup %uint_ty %void_ty = OpTypeVoid %fcn_ty = OpTypeFunction %void_ty %ptr_CrossWorkgroup_int_ty @@ -46,9 +45,9 @@ %sub_group_reduction_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_reduction_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_reduction_val = OpLoad %int_ty %sub_group_reduction_in Aligned 4 + %sub_group_reduction_val = OpLoad %uint_ty %sub_group_reduction_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z20sub_group_reduce_mini(i32 [[VAL]]) - %sub_group_reduction_res = OpGroupSMin %int_ty %sub_group_scope Reduce %sub_group_reduction_val + %sub_group_reduction_res = OpGroupSMin %uint_ty %sub_group_scope Reduce %sub_group_reduction_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_reduction_in %sub_group_reduction_res Aligned 4 ; CHECK: ret void @@ -62,9 +61,9 @@ %sub_group_scan_inc_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_scan_inc_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_scan_inc_val = OpLoad %int_ty %sub_group_scan_inc_in Aligned 4 + %sub_group_scan_inc_val = OpLoad %uint_ty %sub_group_scan_inc_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z28sub_group_scan_inclusive_mini(i32 [[VAL]]) - %sub_group_scan_inc_res = OpGroupSMin %int_ty %sub_group_scope InclusiveScan %sub_group_scan_inc_val + %sub_group_scan_inc_res = OpGroupSMin %uint_ty %sub_group_scope InclusiveScan %sub_group_scan_inc_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_scan_inc_in %sub_group_scan_inc_res Aligned 4 ; CHECK: ret void @@ -78,9 +77,9 @@ %sub_group_scan_exc_in = OpFunctionParameter %ptr_CrossWorkgroup_int_ty %sub_group_scan_exc_bb = OpLabel ; CHECK: [[VAL:%[a-zA-Z0-9_]+]] = load i32, ptr addrspace(1) [[IN]], align 4 - %sub_group_scan_exc_val = OpLoad %int_ty %sub_group_scan_exc_in Aligned 4 + %sub_group_scan_exc_val = OpLoad %uint_ty %sub_group_scan_exc_in Aligned 4 ; CHECK: [[RES:%[a-zA-Z0-9]+]] = call spir_func i32 @_Z28sub_group_scan_exclusive_mini(i32 [[VAL]]) - %sub_group_scan_exc_res = OpGroupSMin %int_ty %sub_group_scope ExclusiveScan %sub_group_scan_exc_val + %sub_group_scan_exc_res = OpGroupSMin %uint_ty %sub_group_scope ExclusiveScan %sub_group_scan_exc_val ; CHECK: store i32 [[RES]], ptr addrspace(1) [[IN]] OpStore %sub_group_scan_exc_in %sub_group_scan_exc_res Aligned 4 ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d.spvasm index f1a6d2129..7762d7890 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_t = OpTypeImage %void_t 1D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_array.spvasm index 7cdd12c49..2d4391cb3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_array_t = OpTypeImage %void_t 1D 0 1 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_buffer.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_buffer.spvasm index d1b2bc9a5..36597a742 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_buffer.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_1d_buffer.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_buffer_t = OpTypeImage %void_t Buffer 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_buffer_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d.spvasm index 40cba42e2..e4a08b542 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image2d_t = OpTypeImage %void_t 2D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image2d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d_array.spvasm index 966bd1f4d..dca96f89a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_2d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image2d_array_t = OpTypeImage %void_t 2D 0 1 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image2d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_3d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_3d.spvasm index 25c4cffbd..099a6b128 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_3d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_format_3d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image3d_t = OpTypeImage %void_t 3D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image3d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d.spvasm index 02ed617cc..8e5abef1a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_t = OpTypeImage %void_t 1D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_array.spvasm index dd2b7bb1c..8e92a0a72 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_array_t = OpTypeImage %void_t 1D 0 1 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_buffer.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_buffer.spvasm index e4b8ab3a4..79c2f37e8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_buffer.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_1d_buffer.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_buffer_t = OpTypeImage %void_t Buffer 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image1d_buffer_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d.spvasm index 756c091e1..ccce68b12 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image2d_t = OpTypeImage %void_t 2D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image2d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d_array.spvasm index f80344078..aa75a7baf 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_2d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image2d_array_t = OpTypeImage %void_t 2D 0 1 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image2d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_3d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_3d.spvasm index 16f52647b..2c17d2f9c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_3d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_order_3d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image3d_t = OpTypeImage %void_t 3D 0 0 0 0 Unknown ReadOnly %query_format_fn_t = OpTypeFunction %void_t %image3d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d.spvasm index f2404069b..9db7fc7bd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %image1d_t = OpTypeImage %void_t 1D 0 0 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image1d_t %int_1 = OpConstant %int_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array.spvasm index 6da539cd3..640e2155b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v2int_t = OpTypeVector %int_t 2 %image1d_array_t = OpTypeImage %void_t 1D 0 1 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image1d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array_32bit.spvasm index ec166b34c..0d7f6c5b5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array_32bit.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_1d_array_32bit.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v2int_t = OpTypeVector %int_t 2 %image1d_array_t = OpTypeImage %void_t 1D 0 1 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image1d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d.spvasm index c978291bb..2f08e83b0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v2int_t = OpTypeVector %int_t 2 %image2d_t = OpTypeImage %void_t 2D 0 0 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image2d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array.spvasm index 941f3f51f..8a854e503 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v3int_t = OpTypeVector %int_t 3 %image2d_array_t = OpTypeImage %void_t 2D 0 1 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image2d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array_32bit.spvasm index a013bc343..4c2000586 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array_32bit.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_2d_array_32bit.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v3int_t = OpTypeVector %int_t 3 %image2d_array_t = OpTypeImage %void_t 2D 0 1 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image2d_array_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_3d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_3d.spvasm index 993bad89b..636d5bca8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_3d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_query_size_lod_3d.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %v3int_t = OpTypeVector %int_t 3 %image3d_t = OpTypeImage %void_t 3D 0 0 0 0 Unknown ReadOnly %query_size_fn_t = OpTypeFunction %void_t %image3d_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_2d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_2d_array.spvasm index 1e7d3398f..f3251e5a6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_2d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_2d_array.spvasm @@ -31,7 +31,6 @@ %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %uint_t 4 - %v4uint_t = OpTypeVector %uint_t 4 %v4float_t = OpTypeVector %float_t 4 %sampler_t = OpTypeSampler %image2d_array_t = OpTypeImage %void_t 2D 0 1 0 0 Unknown ReadOnly @@ -55,9 +54,9 @@ ; CHECK: {{%.*}} = call spir_func <4 x float> @_Z11read_imagef16ocl_image2darray11ocl_samplerDv4_f([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x float> ) %3 = OpImageSampleExplicitLod %v4float_t %sampled_image %v4int_1 None ; CHECK: {{%.*}} = call spir_func <4 x float> @_Z11read_imagef16ocl_image2darray11ocl_samplerDv4_i([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x i32> ) - %6 = OpImageSampleExplicitLod %v4uint_t %sampled_image %v4float_1 None + %6 = OpImageSampleExplicitLod %v4int_t %sampled_image %v4float_1 None ; CHECK: {{%.*}} = call spir_func <4 x i32> @_Z12read_imageui16ocl_image2darray11ocl_samplerDv4_f([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x float> ) - %7 = OpImageSampleExplicitLod %v4uint_t %sampled_image %v4int_1 None + %7 = OpImageSampleExplicitLod %v4int_t %sampled_image %v4int_1 None ; CHECK: {{%.*}} = call spir_func <4 x i32> @_Z12read_imageui16ocl_image2darray11ocl_samplerDv4_i([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x i32> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_3d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_3d.spvasm index 349c3a67b..e6204e274 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_3d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_sample_explicit_lod_3d.spvasm @@ -31,7 +31,6 @@ %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %uint_t 4 - %v4uint_t = OpTypeVector %uint_t 4 %v4float_t = OpTypeVector %float_t 4 %sampler_t = OpTypeSampler %image3d_t = OpTypeImage %void_t 3D 0 0 0 0 Unknown ReadOnly @@ -56,9 +55,9 @@ ; CHECK: {{%.*}} = call spir_func <4 x float> @_Z11read_imagef11ocl_image3d11ocl_samplerDv4_f([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x float> ) %3 = OpImageSampleExplicitLod %v4float_t %sampled_image %v4int_1 None ; CHECK: {{%.*}} = call spir_func <4 x float> @_Z11read_imagef11ocl_image3d11ocl_samplerDv4_i([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x i32> ) - %6 = OpImageSampleExplicitLod %v4uint_t %sampled_image %v4float_1 None + %6 = OpImageSampleExplicitLod %v4int_t %sampled_image %v4float_1 None ; CHECK: {{%.*}} = call spir_func <4 x i32> @_Z12read_imageui11ocl_image3d11ocl_samplerDv4_f([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x float> ) - %7 = OpImageSampleExplicitLod %v4uint_t %sampled_image %v4int_1 None + %7 = OpImageSampleExplicitLod %v4int_t %sampled_image %v4int_1 None ; CHECK: {{%.*}} = call spir_func <4 x i32> @_Z12read_imageui11ocl_image3d11ocl_samplerDv4_i([[IMG_TY]] %in_image, [[SAMPLER_TY]] %in_sampler, <4 x i32> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d.spvasm index 6c8056376..83ca6ad45 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d.spvasm @@ -31,7 +31,6 @@ %uint_t = OpTypeInt 32 0 %v2int_t = OpTypeVector %uint_t 2 %v4float_t = OpTypeVector %float_t 4 - %v4uint_t = OpTypeVector %uint_t 4 %v4int_t = OpTypeVector %uint_t 4 %image2d_t = OpTypeImage %void_t 2D 0 0 0 0 Unknown WriteOnly %image_write_fn_t = OpTypeFunction %void_t %image2d_t @@ -39,7 +38,7 @@ %float_1 = OpConstant %float_t 1 %v2int_1 = OpConstantComposite %v2int_t %uint_1 %uint_1 %v4float_1 = OpConstantComposite %v4float_t %float_1 %float_1 %float_1 %float_1 - %v4uint_1 = OpConstantComposite %v4uint_t %uint_1 %uint_1 %uint_1 %uint_1 + %v4uint_1 = OpConstantComposite %v4int_t %uint_1 %uint_1 %uint_1 %uint_1 ; All functions %image2d = OpFunction %void_t None %image_write_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d_array.spvasm index ae8b26f6b..e93315fb5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_image_write_2d_array.spvasm @@ -32,7 +32,6 @@ %image_write_fn_t = OpTypeFunction %void_t %image2d_array_t %v4int_t = OpTypeVector %uint_t 4 %v4float_t = OpTypeVector %float_t 4 - %v4uint_t = OpTypeVector %uint_t 4 %uint_1 = OpConstant %uint_t 1 %float_1 = OpConstant %float_t 1 %v4int_1 = OpConstantComposite %v4int_t %uint_1 %uint_1 %uint_1 %uint_1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_float.spvasm index 49cbaad7c..1e3dd419f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer CrossWorkgroup %int_t %frexp_fn_t = OpTypeFunction %void_t %int_ptr_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v16float.spvasm index a600e17fe..60ba26061 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v2float.spvasm index eb94f644a..59dbf3df6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v3float.spvasm index 4ab17d00f..a88731027 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v4float.spvasm index 4ed466901..ee204a073 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v8float.spvasm index 7a928d36f..e65eb741c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_global_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_float.spvasm index de9328639..ff3e8e707 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Workgroup %int_t %frexp_fn_t = OpTypeFunction %void_t %int_ptr_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v16float.spvasm index 2d201816e..cf2b5f1a2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v2float.spvasm index 07d9d2e23..29ef758b8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v3float.spvasm index ae687ac69..74e174122 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v4float.spvasm index f3c33d805..77d31cf20 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v8float.spvasm index 9800b66d5..0f3e319c6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_local_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_float.spvasm index 1e3d0bed5..c54bc1bd5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Function %int_t %frexp_fn_t = OpTypeFunction %void_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v16float.spvasm index 38a46d286..d5bd10ff6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v2float.spvasm index dd092be65..e09bad17c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v2float.spvasm @@ -26,13 +26,10 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 - %v2int_t = OpTypeVector %int_t 2 %v2uint_t = OpTypeVector %uint_t 2 %v2float_t = OpTypeVector %float_t 2 - %v2int_ptr_t = OpTypePointer Function %v2int_t %v2uint_ptr_t = OpTypePointer Function %v2uint_t %frexp_fn_t = OpTypeFunction %void_t %float_1 = OpConstant %float_t 1.4 @@ -42,7 +39,7 @@ %frexp_v2float = OpFunction %void_t None %frexp_fn_t ; CHECK: define spir_kernel void @frexp_v2float() %2 = OpLabel - %3 = OpVariable %v2int_ptr_t Function + %3 = OpVariable %v2uint_ptr_t Function ; CHECK: [[ptr:%[a-zA-Z0-9]+]] = alloca <2 x i32> %4 = OpExtInst %v2float_t %1 frexp %v2float_1 %3 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x float> @_Z5frexpDv2_fPDv2_i(<2 x float> , ptr [[ptr]]) diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v3float.spvasm index 8d74bb930..780e66fbf 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v4float.spvasm index cc1d19cdc..4b14a65cb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v8float.spvasm index 8c10a1cdc..6cc2b827d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_frexp_private_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_float.spvasm index c132daa05..eba5debd9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %ilogb_fn_t = OpTypeFunction %void_t %float_1 = OpConstant %float_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v16float.spvasm index ebdd4823a..f0e7fabeb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v2float.spvasm index 9dc880177..4cc4f704c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v2float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v3float.spvasm index ca8067ddc..351d4cd71 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v4float.spvasm index 08c68cd61..c189f9b9a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v8float.spvasm index e188713d0..4213776db 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ilogb_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_float.spvasm index 2ecf17834..552386ee4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %ldexp_fn_t = OpTypeFunction %void_t %int_1 = OpConstant %int_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v16float.spvasm index 4131e52ce..9a1a7a3ab 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v2float.spvasm index 6a962fc90..be4c97d5c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v2float.spvasm @@ -26,31 +26,16 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 - %v2int_t = OpTypeVector %int_t 2 %v2uint_t = OpTypeVector %uint_t 2 %v2float_t = OpTypeVector %float_t 2 %ldexp_fn_t = OpTypeFunction %void_t - %int_1 = OpConstant %int_t 1 %uint_1 = OpConstant %uint_t 1 %float_2 = OpConstant %float_t 2 - %v2int_1 = OpConstantComposite %v2int_t %int_1 %int_1 %v2uint_1 = OpConstantComposite %v2uint_t %uint_1 %uint_1 %v2float_2 = OpConstantComposite %v2float_t %float_2 %float_2 -; All functions - %ldexp_v2float = OpFunction %void_t None %ldexp_fn_t -; CHECK: define spir_kernel void @ldexp_v2float() - %2 = OpLabel - %3 = OpExtInst %v2float_t %1 ldexp %v2float_2 %v2int_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x float> @_Z5ldexpDv2_fDv2_i(<2 x float> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } - %ldexp_v2float_uint = OpFunction %void_t None %ldexp_fn_t ; CHECK: define spir_kernel void @ldexp_v2float_uint() %4 = OpLabel diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v3float.spvasm index 6873561eb..e66e7fc68 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v4float.spvasm index a0e51b2e3..5155a3233 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v8float.spvasm index a301d71bf..ddaa1ddf2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_ldexp_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_float.spvasm index 3ad74999b..9bdddd38d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_float.spvasm @@ -28,27 +28,13 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 - %int_ptr_t = OpTypePointer CrossWorkgroup %int_t %uint_ptr_t = OpTypePointer CrossWorkgroup %uint_t - %lgamma_r_fn_t = OpTypeFunction %void_t %int_ptr_t %lgamma_r_uint_fn_t = OpTypeFunction %void_t %uint_ptr_t %float_2 = OpConstant %float_t 2.14 ; All functions - %lgamma_r_float = OpFunction %void_t None %lgamma_r_fn_t - %in_signp = OpFunctionParameter %int_ptr_t -; CHECK: define spir_kernel void @lgamma_r_float(ptr addrspace(1) %in_signp) - %2 = OpLabel - %3 = OpExtInst %float_t %1 lgamma_r %float_2 %in_signp -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func float @_Z8lgamma_rfPU3AS1i(float 0x40011EB860000000, ptr addrspace(1) %in_signp) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } - %lgamma_r_float_uint = OpFunction %void_t None %lgamma_r_uint_fn_t %in_signp_uint = OpFunctionParameter %uint_ptr_t ; CHECK: define spir_kernel void @lgamma_r_float_uint(ptr addrspace(1) %in_signp) diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v16float.spvasm index 7b48dcda8..08ef61fe6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v2float.spvasm index 07e988069..590fc4400 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v3float.spvasm index b4e194b15..e5ccef44d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v4float.spvasm index abf91f1f6..eb462f795 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v8float.spvasm index 16c650e4e..64150c388 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_global_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_float.spvasm index 185bfad5b..e47285c36 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Workgroup %int_t %lgamma_r_fn_t = OpTypeFunction %void_t %int_ptr_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v16float.spvasm index b1e7d4978..fe87b798a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v2float.spvasm index 8c112f840..6688917b6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v3float.spvasm index cdac4a8e0..208849b72 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v4float.spvasm index a9e294ee5..1b7b54f79 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v8float.spvasm index aaa3d5da1..a6c9be507 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_local_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_float.spvasm index 7acf06992..a94054e8b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Function %int_t %lgamma_r_fn_t = OpTypeFunction %void_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v16float.spvasm index 7f678d354..8d7caf1ef 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v2float.spvasm index 2a6710f23..bbb1a0894 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v2float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v3float.spvasm index 554cdfc8f..799bebd89 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v4float.spvasm index 0ce7a16b5..dbd495661 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v8float.spvasm index f857de944..903a61c0b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_lgamma_r_private_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_float.spvasm index 4039839df..fc3475833 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %pown_fn_t = OpTypeFunction %void_t %int_2 = OpConstant %int_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v16float.spvasm index 48b72fe84..6438a1438 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v2float.spvasm index e14095bd7..fd8caaea4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v2float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v3float.spvasm index 807275dca..85af0d7c8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v4float.spvasm index cac13c7ae..9ecfb4d98 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v8float.spvasm index 50805df9a..919eb966c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_pown_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_float.spvasm index 375ab9766..09aca0458 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_float.spvasm @@ -28,28 +28,13 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 - %int_ptr_t = OpTypePointer CrossWorkgroup %int_t %uint_ptr_t = OpTypePointer CrossWorkgroup %uint_t - %remquo_fn_t = OpTypeFunction %void_t %int_ptr_t %remquo_uint_fn_t = OpTypeFunction %void_t %uint_ptr_t %float_1 = OpConstant %float_t 1.5 %float_2 = OpConstant %float_t 2.0 -; All functions - %remquo_float = OpFunction %void_t None %remquo_fn_t - %in_quo = OpFunctionParameter %int_ptr_t -; CHECK: define spir_kernel void @remquo_float(ptr addrspace(1) %in_quo) - %2 = OpLabel - %3 = OpExtInst %float_t %1 remquo %float_2 %float_1 %in_quo -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func float @_Z6remquoffPU3AS1i(float 2.000000e+00, float 1.500000e+00, ptr addrspace(1) %in_quo) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } - %remquo_float_uint = OpFunction %void_t None %remquo_uint_fn_t %in_quo_uint = OpFunctionParameter %uint_ptr_t ; CHECK: define spir_kernel void @remquo_float_uint(ptr addrspace(1) %in_quo) diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v16float.spvasm index 1b81d3186..e6b1db64e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v2float.spvasm index cb26be8f3..fd228ffbd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v3float.spvasm index 1917c59d3..7d6fda116 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v4float.spvasm index 1c2203d1a..10b7a3c25 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v8float.spvasm index 6456d677f..1e51640f1 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_global_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_float.spvasm index b304eac9a..7873002fa 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Workgroup %int_t %remquo_fn_t = OpTypeFunction %void_t %int_ptr_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v16float.spvasm index fbd10f7b3..77de516f8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v16float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v2float.spvasm index a3df237c8..0ebc1f9d5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v2float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v3float.spvasm index 49feefbfb..2ea5c589c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v3float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v4float.spvasm index 174a5a81b..789540a3a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v4float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v8float.spvasm index a1a941c81..773d0ec85 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_local_v8float.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_float.spvasm index a14239adb..f38f641dc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %int_ptr_t = OpTypePointer Function %int_t %remquo_fn_t = OpTypeFunction %void_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v16float.spvasm index d6c42be0d..6474d4c7a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v2float.spvasm index 26586dbc5..718b04314 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v2float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v3float.spvasm index 0334c6f51..17127e2fc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v4float.spvasm index 31fca2b7c..bf813ca39 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v8float.spvasm index 791375c10..4d16aa459 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_remquo_private_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_float.spvasm index dc208edac..a1771e686 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_float.spvasm @@ -26,25 +26,12 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 %uint_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %rootn_fn_t = OpTypeFunction %void_t - %int_2 = OpConstant %int_t 2 %uint_2 = OpConstant %uint_t 2 %float_2 = OpConstant %float_t 2.0 -; All functions - %rootn_float = OpFunction %void_t None %rootn_fn_t -; CHECK: define spir_kernel void @rootn_float() - %2 = OpLabel - %3 = OpExtInst %float_t %1 rootn %float_2 %int_2 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func float @_Z5rootnfi(float 2.000000e+00, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } - %rootn_float_uint = OpFunction %void_t None %rootn_fn_t ; CHECK: define spir_kernel void @rootn_float_uint() %4 = OpLabel diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v16float.spvasm index ba73e5cde..c278814e3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v16float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v16float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v16int_t = OpTypeVector %int_t 16 %v16float_t = OpTypeVector %float_t 16 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v2float.spvasm index 83fa8c460..a1a3bebb4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v2float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v2float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v2int_t = OpTypeVector %int_t 2 %v2float_t = OpTypeVector %float_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v3float.spvasm index 3fa452286..2714889b0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v3float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v3float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v3int_t = OpTypeVector %int_t 3 %v3float_t = OpTypeVector %float_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v4float.spvasm index a280dc9ff..f9f2a7665 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v4float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v4float.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v4int_t = OpTypeVector %int_t 4 %v4float_t = OpTypeVector %float_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v8float.spvasm index a1eabfe2b..11424e75a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v8float.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_rootn_v8float.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %int_t = OpTypeInt 32 1 + %int_t = OpTypeInt 32 0 %float_t = OpTypeFloat 32 %v8int_t = OpTypeVector %int_t 8 %v8float_t = OpTypeVector %float_t 8 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i16.spvasm index 72ba01554..4aedeff68 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i16.spvasm @@ -26,19 +26,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui16_t = OpTypeInt 16 0 + %i16_t = OpTypeInt 16 0 %s_abs_diff_fn_t = OpTypeFunction %void_t - %ui16_2 = OpConstant %ui16_t 2 - %ui16_5 = OpConstant %ui16_t 5 + %i16_2 = OpConstant %i16_t 2 + %i16_5 = OpConstant %i16_t 5 ; All functions %s_abs_diff_i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_i16() %2 = OpLabel - %3 = OpExtInst %ui16_t %1 s_abs_diff %ui16_2 %ui16_5 + %3 = OpExtInst %i16_t %1 s_abs_diff %i16_2 %i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i16 @_Z8abs_diffss(i16 signext 2, i16 signext 5) - %4 = OpExtInst %i16_t %1 s_abs_diff %ui16_2 %ui16_5 + %4 = OpExtInst %i16_t %1 s_abs_diff %i16_2 %i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i16 @_Z8abs_diffss(i16 signext 2, i16 signext 5) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i32.spvasm index e268a9674..9a087db9f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i32.spvasm @@ -26,10 +26,9 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 ; All functions %s_abs_diff_i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i64.spvasm index 8379a9204..224441226 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i64.spvasm @@ -26,8 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 %i64_5 = OpConstant %i64_t 5 @@ -36,7 +35,7 @@ %s_abs_diff_i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_i64() %2 = OpLabel - %3 = OpExtInst %ui64_t %1 s_abs_diff %i64_2 %i64_5 + %3 = OpExtInst %i64_t %1 s_abs_diff %i64_2 %i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z8abs_diffll(i64 2, i64 5) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i8.spvasm index 37e9b720b..38e463dd6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_i8.spvasm @@ -26,19 +26,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui8_t = OpTypeInt 8 0 + %i8_t = OpTypeInt 8 0 %s_abs_diff_fn_t = OpTypeFunction %void_t - %ui8_2 = OpConstant %ui8_t 2 - %ui8_5 = OpConstant %ui8_t 5 + %i8_2 = OpConstant %i8_t 2 + %i8_5 = OpConstant %i8_t 5 ; All functions %s_abs_diff_i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_i8() %2 = OpLabel - %3 = OpExtInst %ui8_t %1 s_abs_diff %ui8_2 %ui8_5 + %3 = OpExtInst %i8_t %1 s_abs_diff %i8_2 %i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z8abs_diffcc(i8 signext 2, i8 signext 5) - %4 = OpExtInst %i8_t %1 s_abs_diff %ui8_2 %ui8_5 + %4 = OpExtInst %i8_t %1 s_abs_diff %i8_2 %i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z8abs_diffcc(i8 signext 2, i8 signext 5) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i16.spvasm index 860166a8a..1ea243454 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i16.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v16ui16_t = OpTypeVector %ui16_t 16 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_abs_diff_fn_t = OpTypeFunction %void_t %i16_2 = OpConstant %i16_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v16i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v16i16() %2 = OpLabel - %3 = OpExtInst %v16ui16_t %1 s_abs_diff %v16i16_2 %v16i16_5 + %3 = OpExtInst %v16i16_t %1 s_abs_diff %v16i16_2 %v16i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z8abs_diffDv16_sS_(<16 x i16> , <16 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i32.spvasm index 5e0b24f21..18d0a32a4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i32.spvasm @@ -27,14 +27,12 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v16ui32_t = OpTypeVector %ui32_t 16 - %v16i32_t = OpTypeVector %i32_t 16 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 - %v16i32_2 = OpConstantComposite %v16i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v16i32_5 = OpConstantComposite %v16i32_t %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 + %v16i32_2 = OpConstantComposite %v16ui32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 + %v16i32_5 = OpConstantComposite %v16ui32_t %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 ; All functions %s_abs_diff_v16i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i64.spvasm index bd7a03876..b460e83ab 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i64.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v16ui64_t = OpTypeVector %ui64_t 16 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v16i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v16i64() %2 = OpLabel - %3 = OpExtInst %v16ui64_t %1 s_abs_diff %v16i64_2 %v16i64_5 + %3 = OpExtInst %v16i64_t %1 s_abs_diff %v16i64_2 %v16i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z8abs_diffDv16_lS_(<16 x i64> , <16 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i8.spvasm index a5b255985..e0bea0d88 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v16i8.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v16ui8_t = OpTypeVector %ui8_t 16 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_abs_diff_fn_t = OpTypeFunction %void_t %i8_2 = OpConstant %i8_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v16i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v16i8() %2 = OpLabel - %3 = OpExtInst %v16ui8_t %1 s_abs_diff %v16i8_2 %v16i8_5 + %3 = OpExtInst %v16i8_t %1 s_abs_diff %v16i8_2 %v16i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z8abs_diffDv16_cS_(<16 x i8> , <16 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i16.spvasm index 564ab045e..9b3f4a330 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i16.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v2ui16_t = OpTypeVector %ui16_t 2 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_abs_diff_fn_t = OpTypeFunction %void_t %i16_2 = OpConstant %i16_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v2i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v2i16() %2 = OpLabel - %3 = OpExtInst %v2ui16_t %1 s_abs_diff %v2i16_2 %v2i16_5 + %3 = OpExtInst %v2i16_t %1 s_abs_diff %v2i16_2 %v2i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z8abs_diffDv2_sS_(<2 x i16> , <2 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i32.spvasm index 74ddf1a67..2ade3347e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i32.spvasm @@ -26,14 +26,12 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v2ui32_t = OpTypeVector %ui32_t 2 - %v2i32_t = OpTypeVector %i32_t 2 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 - %v2i32_2 = OpConstantComposite %v2i32_t %i32_2 %i32_2 - %v2i32_5 = OpConstantComposite %v2i32_t %i32_5 %i32_5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 + %v2i32_2 = OpConstantComposite %v2ui32_t %i32_2 %i32_2 + %v2i32_5 = OpConstantComposite %v2ui32_t %i32_5 %i32_5 ; All functions %s_abs_diff_v2i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i64.spvasm index 247a28a36..f88176c76 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i64.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v2ui64_t = OpTypeVector %ui64_t 2 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v2i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v2i64() %2 = OpLabel - %3 = OpExtInst %v2ui64_t %1 s_abs_diff %v2i64_2 %v2i64_5 + %3 = OpExtInst %v2i64_t %1 s_abs_diff %v2i64_2 %v2i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z8abs_diffDv2_lS_(<2 x i64> , <2 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i8.spvasm index 7ee7d44f5..7c6e7d046 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v2i8.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v2ui8_t = OpTypeVector %ui8_t 2 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_abs_diff_fn_t = OpTypeFunction %void_t %i8_2 = OpConstant %i8_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v2i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v2i8() %2 = OpLabel - %3 = OpExtInst %v2ui8_t %1 s_abs_diff %v2i8_2 %v2i8_5 + %3 = OpExtInst %v2i8_t %1 s_abs_diff %v2i8_2 %v2i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z8abs_diffDv2_cS_(<2 x i8> , <2 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i16.spvasm index d2a34ca50..ee8880fdd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i16.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v3ui16_t = OpTypeVector %ui16_t 3 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_abs_diff_fn_t = OpTypeFunction %void_t %i16_2 = OpConstant %i16_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v3i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v3i16() %2 = OpLabel - %3 = OpExtInst %v3ui16_t %1 s_abs_diff %v3i16_2 %v3i16_5 + %3 = OpExtInst %v3i16_t %1 s_abs_diff %v3i16_2 %v3i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z8abs_diffDv3_sS_(<3 x i16> , <3 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i32.spvasm index 7c2ba5614..cd8e1f4f9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i32.spvasm @@ -26,14 +26,12 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v3ui32_t = OpTypeVector %ui32_t 3 - %v3i32_t = OpTypeVector %i32_t 3 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 - %v3i32_2 = OpConstantComposite %v3i32_t %i32_2 %i32_2 %i32_2 - %v3i32_5 = OpConstantComposite %v3i32_t %i32_5 %i32_5 %i32_5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 + %v3i32_2 = OpConstantComposite %v3ui32_t %i32_2 %i32_2 %i32_2 + %v3i32_5 = OpConstantComposite %v3ui32_t %i32_5 %i32_5 %i32_5 ; All functions %s_abs_diff_v3i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i64.spvasm index 989cf3ba2..bbce68641 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i64.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v3ui64_t = OpTypeVector %ui64_t 3 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v3i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v3i64() %2 = OpLabel - %3 = OpExtInst %v3ui64_t %1 s_abs_diff %v3i64_2 %v3i64_5 + %3 = OpExtInst %v3i64_t %1 s_abs_diff %v3i64_2 %v3i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z8abs_diffDv3_lS_(<3 x i64> , <3 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i8.spvasm index 1b12f9afe..ec22876ee 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v3i8.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v3ui8_t = OpTypeVector %ui8_t 3 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_abs_diff_fn_t = OpTypeFunction %void_t %i8_2 = OpConstant %i8_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v3i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v3i8() %2 = OpLabel - %3 = OpExtInst %v3ui8_t %1 s_abs_diff %v3i8_2 %v3i8_5 + %3 = OpExtInst %v3i8_t %1 s_abs_diff %v3i8_2 %v3i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z8abs_diffDv3_cS_(<3 x i8> , <3 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i16.spvasm index 47d03cbc8..3ae246590 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i16.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v4ui16_t = OpTypeVector %ui16_t 4 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_abs_diff_fn_t = OpTypeFunction %void_t %i16_2 = OpConstant %i16_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v4i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v4i16() %2 = OpLabel - %3 = OpExtInst %v4ui16_t %1 s_abs_diff %v4i16_2 %v4i16_5 + %3 = OpExtInst %v4i16_t %1 s_abs_diff %v4i16_2 %v4i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z8abs_diffDv4_sS_(<4 x i16> , <4 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i32.spvasm index cf4651b21..6e64e2110 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i32.spvasm @@ -26,14 +26,12 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v4ui32_t = OpTypeVector %ui32_t 4 - %v4i32_t = OpTypeVector %i32_t 4 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 - %v4i32_2 = OpConstantComposite %v4i32_t %i32_2 %i32_2 %i32_2 %i32_2 - %v4i32_5 = OpConstantComposite %v4i32_t %i32_5 %i32_5 %i32_5 %i32_5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 + %v4i32_2 = OpConstantComposite %v4ui32_t %i32_2 %i32_2 %i32_2 %i32_2 + %v4i32_5 = OpConstantComposite %v4ui32_t %i32_5 %i32_5 %i32_5 %i32_5 ; All functions %s_abs_diff_v4i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i64.spvasm index f846adae7..5d2ae28dd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i64.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v4ui64_t = OpTypeVector %ui64_t 4 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v4i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v4i64() %2 = OpLabel - %3 = OpExtInst %v4ui64_t %1 s_abs_diff %v4i64_2 %v4i64_5 + %3 = OpExtInst %v4i64_t %1 s_abs_diff %v4i64_2 %v4i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z8abs_diffDv4_lS_(<4 x i64> , <4 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i8.spvasm index 8fc43eeed..cb886c82d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v4i8.spvasm @@ -26,9 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v4ui8_t = OpTypeVector %ui8_t 4 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_abs_diff_fn_t = OpTypeFunction %void_t %i8_2 = OpConstant %i8_t 2 @@ -40,7 +38,7 @@ %s_abs_diff_v4i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v4i8() %2 = OpLabel - %3 = OpExtInst %v4ui8_t %1 s_abs_diff %v4i8_2 %v4i8_5 + %3 = OpExtInst %v4i8_t %1 s_abs_diff %v4i8_2 %v4i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z8abs_diffDv4_cS_(<4 x i8> , <4 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i16.spvasm index c67e0866a..242a527dc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i16.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v8ui16_t = OpTypeVector %ui16_t 8 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_abs_diff_fn_t = OpTypeFunction %void_t %i16_2 = OpConstant %i16_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v8i16 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v8i16() %2 = OpLabel - %3 = OpExtInst %v8ui16_t %1 s_abs_diff %v8i16_2 %v8i16_5 + %3 = OpExtInst %v8i16_t %1 s_abs_diff %v8i16_2 %v8i16_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z8abs_diffDv8_sS_(<8 x i16> , <8 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i32.spvasm index 32c004ff5..c8a7cbe1c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i32.spvasm @@ -27,14 +27,12 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v8ui32_t = OpTypeVector %ui32_t 8 - %v8i32_t = OpTypeVector %i32_t 8 %s_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_5 = OpConstant %i32_t 5 - %v8i32_2 = OpConstantComposite %v8i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v8i32_5 = OpConstantComposite %v8i32_t %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 + %i32_2 = OpConstant %ui32_t 2 + %i32_5 = OpConstant %ui32_t 5 + %v8i32_2 = OpConstantComposite %v8ui32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 + %v8i32_5 = OpConstantComposite %v8ui32_t %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 %i32_5 ; All functions %s_abs_diff_v8i32 = OpFunction %void_t None %s_abs_diff_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i64.spvasm index 4b79cd92f..33ffb8f6d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i64.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v8ui64_t = OpTypeVector %ui64_t 8 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_abs_diff_fn_t = OpTypeFunction %void_t %i64_2 = OpConstant %i64_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v8i64 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v8i64() %2 = OpLabel - %3 = OpExtInst %v8ui64_t %1 s_abs_diff %v8i64_2 %v8i64_5 + %3 = OpExtInst %v8i64_t %1 s_abs_diff %v8i64_2 %v8i64_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z8abs_diffDv8_lS_(<8 x i64> , <8 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i8.spvasm index da530c653..b12f6b8d2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_diff_v8i8.spvasm @@ -27,9 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v8ui8_t = OpTypeVector %ui8_t 8 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_abs_diff_fn_t = OpTypeFunction %void_t %i8_2 = OpConstant %i8_t 2 @@ -41,7 +39,7 @@ %s_abs_diff_v8i8 = OpFunction %void_t None %s_abs_diff_fn_t ; CHECK: define spir_kernel void @s_abs_diff_v8i8() %2 = OpLabel - %3 = OpExtInst %v8ui8_t %1 s_abs_diff %v8i8_2 %v8i8_5 + %3 = OpExtInst %v8i8_t %1 s_abs_diff %v8i8_2 %v8i8_5 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z8abs_diffDv8_cS_(<8 x i8> , <8 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i16.spvasm index e2f0d2293..287337eb7 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i16.spvasm @@ -26,19 +26,16 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui16_t = OpTypeInt 16 0 + %i16_t = OpTypeInt 16 0 %s_abs_fn_t = OpTypeFunction %void_t ; This constant is the unsigned decimal representation of the two's compliment for -2. - %ui16_2 = OpConstant %ui16_t 65534 + %i16_2 = OpConstant %i16_t 65534 ; All functions %s_abs_i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_i16() %2 = OpLabel - %3 = OpExtInst %ui16_t %1 s_abs %ui16_2 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i16 @_Z3abss(i16 signext -2) - %4 = OpExtInst %i16_t %1 s_abs %ui16_2 + %3 = OpExtInst %i16_t %1 s_abs %i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i16 @_Z3abss(i16 signext -2) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i32.spvasm index e597ce61c..bd5afe0e5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i32.spvasm @@ -26,9 +26,8 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 + %i32_2 = OpConstant %ui32_t 4294967294 ; All functions %s_abs_i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i64.spvasm index 470832126..4521a7b2a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i64.spvasm @@ -26,16 +26,16 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 ; All functions %s_abs_i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_i64() %2 = OpLabel - %3 = OpExtInst %ui64_t %1 s_abs %i64_2 + %3 = OpExtInst %i64_t %1 s_abs %i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z3absl(i64 -2) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i8.spvasm index d2ca7a5fb..22013a52b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_i8.spvasm @@ -26,19 +26,16 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui8_t = OpTypeInt 8 0 + %i8_t = OpTypeInt 8 0 %s_abs_fn_t = OpTypeFunction %void_t ; This constant is the unsigned decimal representation of the two's compliment for -2. - %ui8_2 = OpConstant %ui8_t 254 + %ui8_2 = OpConstant %i8_t 254 ; All functions %s_abs_i8 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_i8() %2 = OpLabel - %3 = OpExtInst %ui8_t %1 s_abs %ui8_2 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z3absc(i8 signext -2) - %4 = OpExtInst %i8_t %1 s_abs %ui8_2 + %3 = OpExtInst %i8_t %1 s_abs %ui8_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z3absc(i8 signext -2) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i16.spvasm index 1fd42fbb7..acfb1dadd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i16.spvasm @@ -27,19 +27,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v16ui16_t = OpTypeVector %ui16_t 16 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_abs_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t -2 + %i16_2 = OpConstant %i16_t 65534 %v16i16_2 = OpConstantComposite %v16i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 ; All functions %s_abs_v16i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v16i16() %2 = OpLabel - %3 = OpExtInst %v16ui16_t %1 s_abs %v16i16_2 + %3 = OpExtInst %v16i16_t %1 s_abs %v16i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z3absDv16_s(<16 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i32.spvasm index eab8051fb..920ff70a2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i32.spvasm @@ -27,12 +27,10 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v16ui32_t = OpTypeVector %ui32_t 16 - %v16i32_t = OpTypeVector %i32_t 16 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 - %v16i32_2 = OpConstantComposite %v16i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 + %i32_2 = OpConstant %ui32_t 4294967294 + %v16i32_2 = OpConstantComposite %v16ui32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 ; All functions %s_abs_v16i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i64.spvasm index eb9dfb19b..e72cda2ef 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i64.spvasm @@ -27,19 +27,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v16ui64_t = OpTypeVector %ui64_t 16 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 %v16i64_2 = OpConstantComposite %v16i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 ; All functions %s_abs_v16i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v16i64() %2 = OpLabel - %3 = OpExtInst %v16ui64_t %1 s_abs %v16i64_2 + %3 = OpExtInst %v16i64_t %1 s_abs %v16i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z3absDv16_l(<16 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i8.spvasm index f2324de6b..e43d863eb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v16i8.spvasm @@ -27,12 +27,10 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v16ui8_t = OpTypeVector %ui8_t 16 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_abs_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t -2 + %i8_2 = OpConstant %i8_t 254 %v16i8_2 = OpConstantComposite %v16i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 ; All functions diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i16.spvasm index 11e0bf210..5cbf9658d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i16.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v2ui16_t = OpTypeVector %ui16_t 2 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_abs_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t -2 + %i16_2 = OpConstant %i16_t 65534 %v2i16_2 = OpConstantComposite %v2i16_t %i16_2 %i16_2 ; All functions %s_abs_v2i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v2i16() %2 = OpLabel - %3 = OpExtInst %v2ui16_t %1 s_abs %v2i16_2 + %3 = OpExtInst %v2i16_t %1 s_abs %v2i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z3absDv2_s(<2 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i32.spvasm index ff0186f05..862976e90 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i32.spvasm @@ -26,12 +26,10 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v2ui32_t = OpTypeVector %ui32_t 2 - %v2i32_t = OpTypeVector %i32_t 2 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 - %v2i32_2 = OpConstantComposite %v2i32_t %i32_2 %i32_2 + %i32_2 = OpConstant %ui32_t 4294967294 + %v2i32_2 = OpConstantComposite %v2ui32_t %i32_2 %i32_2 ; All functions %s_abs_v2i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i64.spvasm index 33ab6a8b0..a3fa8c0d8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i64.spvasm @@ -26,19 +26,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v2ui64_t = OpTypeVector %ui64_t 2 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 %v2i64_2 = OpConstantComposite %v2i64_t %i64_2 %i64_2 ; All functions %s_abs_v2i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v2i64() %2 = OpLabel - %3 = OpExtInst %v2ui64_t %1 s_abs %v2i64_2 + %3 = OpExtInst %v2i64_t %1 s_abs %v2i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z3absDv2_l(<2 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i8.spvasm index 54b68e0ce..421e4cb68 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v2i8.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v2ui8_t = OpTypeVector %ui8_t 2 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_abs_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t -2 + %i8_2 = OpConstant %i8_t 254 %v2i8_2 = OpConstantComposite %v2i8_t %i8_2 %i8_2 ; All functions %s_abs_v2i8 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v2i8() %2 = OpLabel - %3 = OpExtInst %v2ui8_t %1 s_abs %v2i8_2 + %3 = OpExtInst %v2i8_t %1 s_abs %v2i8_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z3absDv2_c(<2 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i16.spvasm index 035cd9c21..127c9ce23 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i16.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v3ui16_t = OpTypeVector %ui16_t 3 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_abs_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t -2 + %i16_2 = OpConstant %i16_t 65534 %v3i16_2 = OpConstantComposite %v3i16_t %i16_2 %i16_2 %i16_2 ; All functions %s_abs_v3i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v3i16() %2 = OpLabel - %3 = OpExtInst %v3ui16_t %1 s_abs %v3i16_2 + %3 = OpExtInst %v3i16_t %1 s_abs %v3i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z3absDv3_s(<3 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i32.spvasm index 4c7481c3a..7723568c8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i32.spvasm @@ -26,12 +26,10 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v3ui32_t = OpTypeVector %ui32_t 3 - %v3i32_t = OpTypeVector %i32_t 3 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 - %v3i32_2 = OpConstantComposite %v3i32_t %i32_2 %i32_2 %i32_2 + %i32_2 = OpConstant %ui32_t 4294967294 + %v3i32_2 = OpConstantComposite %v3ui32_t %i32_2 %i32_2 %i32_2 ; All functions %s_abs_v3i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i64.spvasm index e440ec333..8c6be2e02 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i64.spvasm @@ -26,19 +26,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v3ui64_t = OpTypeVector %ui64_t 3 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 %v3i64_2 = OpConstantComposite %v3i64_t %i64_2 %i64_2 %i64_2 ; All functions %s_abs_v3i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v3i64() %2 = OpLabel - %3 = OpExtInst %v3ui64_t %1 s_abs %v3i64_2 + %3 = OpExtInst %v3i64_t %1 s_abs %v3i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z3absDv3_l(<3 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i8.spvasm index 529366816..dd5085a83 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v3i8.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v3ui8_t = OpTypeVector %ui8_t 3 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_abs_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t -2 + %i8_2 = OpConstant %i8_t 254 %v3i8_2 = OpConstantComposite %v3i8_t %i8_2 %i8_2 %i8_2 ; All functions %s_abs_v3i8 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v3i8() %2 = OpLabel - %3 = OpExtInst %v3ui8_t %1 s_abs %v3i8_2 + %3 = OpExtInst %v3i8_t %1 s_abs %v3i8_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z3absDv3_c(<3 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i16.spvasm index 65ced3096..220f0c8c6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i16.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v4ui16_t = OpTypeVector %ui16_t 4 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_abs_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t -2 + %i16_2 = OpConstant %i16_t 65534 %v4i16_2 = OpConstantComposite %v4i16_t %i16_2 %i16_2 %i16_2 %i16_2 ; All functions %s_abs_v4i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v4i16() %2 = OpLabel - %3 = OpExtInst %v4ui16_t %1 s_abs %v4i16_2 + %3 = OpExtInst %v4i16_t %1 s_abs %v4i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z3absDv4_s(<4 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i32.spvasm index dd5ede7b0..3d29b844d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i32.spvasm @@ -26,12 +26,10 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v4ui32_t = OpTypeVector %ui32_t 4 - %v4i32_t = OpTypeVector %i32_t 4 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 - %v4i32_2 = OpConstantComposite %v4i32_t %i32_2 %i32_2 %i32_2 %i32_2 + %i32_2 = OpConstant %ui32_t 4294967294 + %v4i32_2 = OpConstantComposite %v4ui32_t %i32_2 %i32_2 %i32_2 %i32_2 ; All functions %s_abs_v4i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i64.spvasm index 40a58f7dd..b001966a0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i64.spvasm @@ -26,19 +26,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v4ui64_t = OpTypeVector %ui64_t 4 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 %v4i64_2 = OpConstantComposite %v4i64_t %i64_2 %i64_2 %i64_2 %i64_2 ; All functions %s_abs_v4i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v4i64() %2 = OpLabel - %3 = OpExtInst %v4ui64_t %1 s_abs %v4i64_2 + %3 = OpExtInst %v4i64_t %1 s_abs %v4i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z3absDv4_l(<4 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i8.spvasm index d7541ea18..33a39cefc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v4i8.spvasm @@ -26,19 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v4ui8_t = OpTypeVector %ui8_t 4 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_abs_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t -2 + %i8_2 = OpConstant %i8_t 254 %v4i8_2 = OpConstantComposite %v4i8_t %i8_2 %i8_2 %i8_2 %i8_2 ; All functions %s_abs_v4i8 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v4i8() %2 = OpLabel - %3 = OpExtInst %v4ui8_t %1 s_abs %v4i8_2 + %3 = OpExtInst %v4i8_t %1 s_abs %v4i8_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z3absDv4_c(<4 x i8> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i16.spvasm index 1f9e72571..f05410748 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i16.spvasm @@ -27,19 +27,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v8ui16_t = OpTypeVector %ui16_t 8 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_abs_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t -2 + %i16_2 = OpConstant %i16_t 65534 %v8i16_2 = OpConstantComposite %v8i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 ; All functions %s_abs_v8i16 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v8i16() %2 = OpLabel - %3 = OpExtInst %v8ui16_t %1 s_abs %v8i16_2 + %3 = OpExtInst %v8i16_t %1 s_abs %v8i16_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z3absDv8_s(<8 x i16> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i32.spvasm index d17409d18..cbfca7611 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i32.spvasm @@ -27,12 +27,10 @@ ; All types, variables and constants %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %v8ui32_t = OpTypeVector %ui32_t 8 - %v8i32_t = OpTypeVector %i32_t 8 %s_abs_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t -2 - %v8i32_2 = OpConstantComposite %v8i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 + %i32_2 = OpConstant %ui32_t 4294967294 + %v8i32_2 = OpConstantComposite %v8ui32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 ; All functions %s_abs_v8i32 = OpFunction %void_t None %s_abs_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i64.spvasm index 58bda522e..7b6138cf7 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i64.spvasm @@ -27,19 +27,18 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v8ui64_t = OpTypeVector %ui64_t 8 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_abs_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t -2 + ; Minus 2 in two's complement + %i64_2 = OpConstant %i64_t 18446744073709551614 %v8i64_2 = OpConstantComposite %v8i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 ; All functions %s_abs_v8i64 = OpFunction %void_t None %s_abs_fn_t ; CHECK: define spir_kernel void @s_abs_v8i64() %2 = OpLabel - %3 = OpExtInst %v8ui64_t %1 s_abs %v8i64_2 + %3 = OpExtInst %v8i64_t %1 s_abs %v8i64_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z3absDv8_l(<8 x i64> ) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i8.spvasm index 97e0cc403..0ac8abcaf 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_abs_v8i8.spvasm @@ -27,12 +27,10 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v8ui8_t = OpTypeVector %ui8_t 8 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_abs_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t -2 + %i8_2 = OpConstant %i8_t 254 %v8i8_2 = OpConstantComposite %v8i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 ; All functions diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i32.spvasm index 00aa01347..0ca8814ca 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i64.spvasm index ccf6b5043..ab1f5263d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i16.spvasm index 7f59070e1..4a7710e41 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_add_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i32.spvasm index 5d924f7f3..e1f0000a3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i64.spvasm index cec69e1d1..91967db9a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i8.spvasm index b3ad7e66b..e6edd3c53 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_add_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i16.spvasm index 851b3e508..955d78470 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_add_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i32.spvasm index 4f0ae7fc2..da4bc30dd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i64.spvasm index eda2d44e4..5ac7dd30b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i8.spvasm index 9d2fae00e..030bf1705 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_add_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i16.spvasm index 1f1cd9000..a7a0530d6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_add_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i32.spvasm index e63f65324..ac3435a7b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i64.spvasm index 21d3e3557..079a0030d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i8.spvasm index d4854cc58..042023c5f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_add_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i16.spvasm index 3df7bec48..43b47b710 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_add_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i32.spvasm index 74454b874..9dac9348e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i64.spvasm index 4993de0ec..d7f06ee05 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i8.spvasm index dd27f587a..6e59df1d6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_add_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i16.spvasm index e4521d885..c52de9946 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_add_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i32.spvasm index a0ce0cf29..552f03c72 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_add_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i64.spvasm index 13e6571a5..a9069c490 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_add_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i8.spvasm index fe3007e9e..6a0730fcd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_add_sat_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_add_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i16.spvasm deleted file mode 100644 index 47ff1112f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_i16 "s_bitselect_i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - -; All functions - %s_bitselect_i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_i16() - %2 = OpLabel - %3 = OpExtInst %i16_t %1 bitselect %i16_1 %i16_2 %i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i16 @_Z9bitselectsss(i16 signext 1, i16 signext 2, i16 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i32.spvasm deleted file mode 100644 index 23470c64d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_i32 "s_bitselect_i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - -; All functions - %s_bitselect_i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_i32() - %2 = OpLabel - %3 = OpExtInst %i32_t %1 bitselect %i32_1 %i32_2 %i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z9bitselectiii(i32 1, i32 2, i32 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i64.spvasm deleted file mode 100644 index 2082d2d45..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_i64 "s_bitselect_i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - -; All functions - %s_bitselect_i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_i64() - %2 = OpLabel - %3 = OpExtInst %i64_t %1 bitselect %i64_1 %i64_2 %i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z9bitselectlll(i64 1, i64 2, i64 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i8.spvasm deleted file mode 100644 index c28df817f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_i8 "s_bitselect_i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - -; All functions - %s_bitselect_i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_i8() - %2 = OpLabel - %3 = OpExtInst %i8_t %1 bitselect %i8_1 %i8_2 %i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i8 @_Z9bitselectccc(i8 signext 1, i8 signext 2, i8 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i16.spvasm deleted file mode 100644 index ca373fa98..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v16i16 "s_bitselect_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v16i16_t = OpTypeVector %i16_t 16 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v16i16_1 = OpConstantComposite %v16i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - %v16i16_2 = OpConstantComposite %v16i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v16i16_3 = OpConstantComposite %v16i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_bitselect_v16i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 bitselect %v16i16_1 %v16i16_2 %v16i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z9bitselectDv16_sS_S_(<16 x i16> , <16 x i16> , <16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i32.spvasm deleted file mode 100644 index 0b501288f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v16i32 "s_bitselect_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v16i32_t = OpTypeVector %i32_t 16 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v16i32_1 = OpConstantComposite %v16i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - %v16i32_2 = OpConstantComposite %v16i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_bitselect_v16i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 bitselect %v16i32_1 %v16i32_2 %v16i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z9bitselectDv16_iS_S_(<16 x i32> , <16 x i32> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i64.spvasm deleted file mode 100644 index 5fbd3f508..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v16i64 "s_bitselect_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v16i64_t = OpTypeVector %i64_t 16 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v16i64_1 = OpConstantComposite %v16i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - %v16i64_2 = OpConstantComposite %v16i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_bitselect_v16i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 bitselect %v16i64_1 %v16i64_2 %v16i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z9bitselectDv16_lS_S_(<16 x i64> , <16 x i64> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i8.spvasm deleted file mode 100644 index 83ff21024..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v16i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v16i8 "s_bitselect_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v16i8_t = OpTypeVector %i8_t 16 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v16i8_1 = OpConstantComposite %v16i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - %v16i8_2 = OpConstantComposite %v16i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v16i8_3 = OpConstantComposite %v16i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_bitselect_v16i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 bitselect %v16i8_1 %v16i8_2 %v16i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z9bitselectDv16_cS_S_(<16 x i8> , <16 x i8> , <16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i16.spvasm deleted file mode 100644 index b55a76747..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v2i16 "s_bitselect_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v2i16_t = OpTypeVector %i16_t 2 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v2i16_1 = OpConstantComposite %v2i16_t %i16_1 %i16_1 - %v2i16_2 = OpConstantComposite %v2i16_t %i16_2 %i16_2 - %v2i16_3 = OpConstantComposite %v2i16_t %i16_3 %i16_3 - -; All functions - %s_bitselect_v2i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 bitselect %v2i16_1 %v2i16_2 %v2i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z9bitselectDv2_sS_S_(<2 x i16> , <2 x i16> , <2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i32.spvasm deleted file mode 100644 index 26808a889..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v2i32 "s_bitselect_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v2i32_t = OpTypeVector %i32_t 2 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v2i32_1 = OpConstantComposite %v2i32_t %i32_1 %i32_1 - %v2i32_2 = OpConstantComposite %v2i32_t %i32_2 %i32_2 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - -; All functions - %s_bitselect_v2i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 bitselect %v2i32_1 %v2i32_2 %v2i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z9bitselectDv2_iS_S_(<2 x i32> , <2 x i32> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i64.spvasm deleted file mode 100644 index 6dfd03020..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v2i64 "s_bitselect_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v2i64_t = OpTypeVector %i64_t 2 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v2i64_1 = OpConstantComposite %v2i64_t %i64_1 %i64_1 - %v2i64_2 = OpConstantComposite %v2i64_t %i64_2 %i64_2 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - -; All functions - %s_bitselect_v2i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 bitselect %v2i64_1 %v2i64_2 %v2i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z9bitselectDv2_lS_S_(<2 x i64> , <2 x i64> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i8.spvasm deleted file mode 100644 index 5c575b76b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v2i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v2i8 "s_bitselect_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v2i8_t = OpTypeVector %i8_t 2 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v2i8_1 = OpConstantComposite %v2i8_t %i8_1 %i8_1 - %v2i8_2 = OpConstantComposite %v2i8_t %i8_2 %i8_2 - %v2i8_3 = OpConstantComposite %v2i8_t %i8_3 %i8_3 - -; All functions - %s_bitselect_v2i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 bitselect %v2i8_1 %v2i8_2 %v2i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z9bitselectDv2_cS_S_(<2 x i8> , <2 x i8> , <2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i16.spvasm deleted file mode 100644 index f629c5147..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v3i16 "s_bitselect_v3i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v3i16_t = OpTypeVector %i16_t 3 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v3i16_1 = OpConstantComposite %v3i16_t %i16_1 %i16_1 %i16_1 - %v3i16_2 = OpConstantComposite %v3i16_t %i16_2 %i16_2 %i16_2 - %v3i16_3 = OpConstantComposite %v3i16_t %i16_3 %i16_3 %i16_3 - -; All functions - %s_bitselect_v3i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v3i16() - %2 = OpLabel - %3 = OpExtInst %v3i16_t %1 bitselect %v3i16_1 %v3i16_2 %v3i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z9bitselectDv3_sS_S_(<3 x i16> , <3 x i16> , <3 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i32.spvasm deleted file mode 100644 index 32f21205a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v3i32 "s_bitselect_v3i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v3i32_t = OpTypeVector %i32_t 3 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v3i32_1 = OpConstantComposite %v3i32_t %i32_1 %i32_1 %i32_1 - %v3i32_2 = OpConstantComposite %v3i32_t %i32_2 %i32_2 %i32_2 - %v3i32_3 = OpConstantComposite %v3i32_t %i32_3 %i32_3 %i32_3 - -; All functions - %s_bitselect_v3i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v3i32() - %2 = OpLabel - %3 = OpExtInst %v3i32_t %1 bitselect %v3i32_1 %v3i32_2 %v3i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i32> @_Z9bitselectDv3_iS_S_(<3 x i32> , <3 x i32> , <3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i64.spvasm deleted file mode 100644 index 8b53d552e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v3i64 "s_bitselect_v3i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v3i64_t = OpTypeVector %i64_t 3 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v3i64_1 = OpConstantComposite %v3i64_t %i64_1 %i64_1 %i64_1 - %v3i64_2 = OpConstantComposite %v3i64_t %i64_2 %i64_2 %i64_2 - %v3i64_3 = OpConstantComposite %v3i64_t %i64_3 %i64_3 %i64_3 - -; All functions - %s_bitselect_v3i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v3i64() - %2 = OpLabel - %3 = OpExtInst %v3i64_t %1 bitselect %v3i64_1 %v3i64_2 %v3i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z9bitselectDv3_lS_S_(<3 x i64> , <3 x i64> , <3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i8.spvasm deleted file mode 100644 index c12d7c9bf..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v3i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v3i8 "s_bitselect_v3i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v3i8_t = OpTypeVector %i8_t 3 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v3i8_1 = OpConstantComposite %v3i8_t %i8_1 %i8_1 %i8_1 - %v3i8_2 = OpConstantComposite %v3i8_t %i8_2 %i8_2 %i8_2 - %v3i8_3 = OpConstantComposite %v3i8_t %i8_3 %i8_3 %i8_3 - -; All functions - %s_bitselect_v3i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v3i8() - %2 = OpLabel - %3 = OpExtInst %v3i8_t %1 bitselect %v3i8_1 %v3i8_2 %v3i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z9bitselectDv3_cS_S_(<3 x i8> , <3 x i8> , <3 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i16.spvasm deleted file mode 100644 index 3271fddfc..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v4i16 "s_bitselect_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v4i16_t = OpTypeVector %i16_t 4 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v4i16_1 = OpConstantComposite %v4i16_t %i16_1 %i16_1 %i16_1 %i16_1 - %v4i16_2 = OpConstantComposite %v4i16_t %i16_2 %i16_2 %i16_2 %i16_2 - %v4i16_3 = OpConstantComposite %v4i16_t %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_bitselect_v4i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 bitselect %v4i16_1 %v4i16_2 %v4i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z9bitselectDv4_sS_S_(<4 x i16> , <4 x i16> , <4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i32.spvasm deleted file mode 100644 index 33926a15b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v4i32 "s_bitselect_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v4i32_t = OpTypeVector %i32_t 4 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v4i32_1 = OpConstantComposite %v4i32_t %i32_1 %i32_1 %i32_1 %i32_1 - %v4i32_2 = OpConstantComposite %v4i32_t %i32_2 %i32_2 %i32_2 %i32_2 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_bitselect_v4i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 bitselect %v4i32_1 %v4i32_2 %v4i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z9bitselectDv4_iS_S_(<4 x i32> , <4 x i32> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i64.spvasm deleted file mode 100644 index 07f14fd87..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v4i64 "s_bitselect_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v4i64_t = OpTypeVector %i64_t 4 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v4i64_1 = OpConstantComposite %v4i64_t %i64_1 %i64_1 %i64_1 %i64_1 - %v4i64_2 = OpConstantComposite %v4i64_t %i64_2 %i64_2 %i64_2 %i64_2 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_bitselect_v4i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 bitselect %v4i64_1 %v4i64_2 %v4i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z9bitselectDv4_lS_S_(<4 x i64> , <4 x i64> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i8.spvasm deleted file mode 100644 index b9bdc5e56..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v4i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v4i8 "s_bitselect_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v4i8_t = OpTypeVector %i8_t 4 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v4i8_1 = OpConstantComposite %v4i8_t %i8_1 %i8_1 %i8_1 %i8_1 - %v4i8_2 = OpConstantComposite %v4i8_t %i8_2 %i8_2 %i8_2 %i8_2 - %v4i8_3 = OpConstantComposite %v4i8_t %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_bitselect_v4i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 bitselect %v4i8_1 %v4i8_2 %v4i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z9bitselectDv4_cS_S_(<4 x i8> , <4 x i8> , <4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i16.spvasm deleted file mode 100644 index beb224562..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v8i16 "s_bitselect_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v8i16_t = OpTypeVector %i16_t 8 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v8i16_1 = OpConstantComposite %v8i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - %v8i16_2 = OpConstantComposite %v8i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v8i16_3 = OpConstantComposite %v8i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_bitselect_v8i16 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 bitselect %v8i16_1 %v8i16_2 %v8i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z9bitselectDv8_sS_S_(<8 x i16> , <8 x i16> , <8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i32.spvasm deleted file mode 100644 index c00aa9a13..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v8i32 "s_bitselect_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v8i32_t = OpTypeVector %i32_t 8 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v8i32_1 = OpConstantComposite %v8i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - %v8i32_2 = OpConstantComposite %v8i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_bitselect_v8i32 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 bitselect %v8i32_1 %v8i32_2 %v8i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z9bitselectDv8_iS_S_(<8 x i32> , <8 x i32> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i64.spvasm deleted file mode 100644 index 566be5ac3..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v8i64 "s_bitselect_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v8i64_t = OpTypeVector %i64_t 8 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v8i64_1 = OpConstantComposite %v8i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - %v8i64_2 = OpConstantComposite %v8i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_bitselect_v8i64 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 bitselect %v8i64_1 %v8i64_2 %v8i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z9bitselectDv8_lS_S_(<8 x i64> , <8 x i64> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i8.spvasm deleted file mode 100644 index 72cb54168..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_bitselect_v8i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_bitselect_v8i8 "s_bitselect_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v8i8_t = OpTypeVector %i8_t 8 - %s_bitselect_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v8i8_1 = OpConstantComposite %v8i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - %v8i8_2 = OpConstantComposite %v8i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v8i8_3 = OpConstantComposite %v8i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_bitselect_v8i8 = OpFunction %void_t None %s_bitselect_fn_t -; CHECK: define spir_kernel void @s_bitselect_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 bitselect %v8i8_1 %v8i8_2 %v8i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z9bitselectDv8_cS_S_(<8 x i8> , <8 x i8> , <8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i16.spvasm index 4cf62e074..902101a25 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i32.spvasm index 044bb4f4d..0335c2038 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i64.spvasm index 4cd9c9af1..f01fbcca2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i8.spvasm index 5fc05f18f..d15e35747 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i16.spvasm index 5cebd4d52..267274ec3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i32.spvasm index fa0cf6b19..d8d3bd0b1 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i64.spvasm index 328aab317..3456c64ef 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i8.spvasm index 953e731c1..ce807df15 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i16.spvasm index bd8d46da8..bdb142f3f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i32.spvasm index 260bb15db..2a49070b3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i64.spvasm index 2ceffd440..414b0c628 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i8.spvasm index 403af53b2..25a6abad1 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i16.spvasm index efd18ccda..4b405ca73 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i32.spvasm index 9d7e95450..5976853fa 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i64.spvasm index d3057237b..aefca2de5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i8.spvasm index efa0040e1..7624246c6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i16.spvasm index 062bcb574..8a27420e6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i32.spvasm index 3380ad042..382468e47 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i64.spvasm index 344afe5c4..87a2154ae 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i8.spvasm index 3db962a3a..c8ea194f5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i16.spvasm index ece0c5fb6..278756e25 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_clamp_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i32.spvasm index 8dc264582..932049a99 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_clamp_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i64.spvasm index 9f8d7e923..c63e8da56 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_clamp_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i8.spvasm index f97c730be..f65969802 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clamp_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_clamp_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i16.spvasm deleted file mode 100644 index a9060d599..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i16.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_i16 "s_clz_i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - -; All functions - %s_clz_i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_i16() - %2 = OpLabel - %3 = OpExtInst %i16_t %1 clz %i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i16 @_Z3clzs(i16 signext 1) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i32.spvasm deleted file mode 100644 index 4870de63a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i32.spvasm +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_i32 "s_clz_i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - -; All functions - %s_clz_i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_i32() - %2 = OpLabel - %3 = OpExtInst %i32_t %1 clz %i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z3clzi(i32 1) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i64.spvasm deleted file mode 100644 index 7582ccbd1..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i64.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_i64 "s_clz_i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - -; All functions - %s_clz_i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_i64() - %2 = OpLabel - %3 = OpExtInst %i64_t %1 clz %i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z3clzl(i64 1) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i8.spvasm deleted file mode 100644 index d3d810d2c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_i8.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_i8 "s_clz_i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - -; All functions - %s_clz_i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_i8() - %2 = OpLabel - %3 = OpExtInst %i8_t %1 clz %i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i8 @_Z3clzc(i8 signext 1) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i16.spvasm deleted file mode 100644 index 1ddb2e50c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i16.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v16i16 "s_clz_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v16i16_t = OpTypeVector %i16_t 16 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %v16i16_1 = OpConstantComposite %v16i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - -; All functions - %s_clz_v16i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 clz %v16i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z3clzDv16_s(<16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i32.spvasm deleted file mode 100644 index 03b0e2c45..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i32.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v16i32 "s_clz_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v16i32_t = OpTypeVector %i32_t 16 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %v16i32_1 = OpConstantComposite %v16i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - -; All functions - %s_clz_v16i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 clz %v16i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z3clzDv16_i(<16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i64.spvasm deleted file mode 100644 index 1f8dc40b3..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i64.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v16i64 "s_clz_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v16i64_t = OpTypeVector %i64_t 16 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %v16i64_1 = OpConstantComposite %v16i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - -; All functions - %s_clz_v16i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 clz %v16i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z3clzDv16_l(<16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i8.spvasm deleted file mode 100644 index a2b0d1576..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v16i8.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v16i8 "s_clz_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v16i8_t = OpTypeVector %i8_t 16 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %v16i8_1 = OpConstantComposite %v16i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - -; All functions - %s_clz_v16i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 clz %v16i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z3clzDv16_c(<16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i16.spvasm deleted file mode 100644 index ecb31fd1b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v2i16 "s_clz_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v2i16_t = OpTypeVector %i16_t 2 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %v2i16_1 = OpConstantComposite %v2i16_t %i16_1 %i16_1 - -; All functions - %s_clz_v2i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 clz %v2i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z3clzDv2_s(<2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i32.spvasm deleted file mode 100644 index 4fdf006ff..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v2i32 "s_clz_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v2i32_t = OpTypeVector %i32_t 2 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %v2i32_1 = OpConstantComposite %v2i32_t %i32_1 %i32_1 - -; All functions - %s_clz_v2i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 clz %v2i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z3clzDv2_i(<2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i64.spvasm deleted file mode 100644 index de9d7a25a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v2i64 "s_clz_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v2i64_t = OpTypeVector %i64_t 2 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %v2i64_1 = OpConstantComposite %v2i64_t %i64_1 %i64_1 - -; All functions - %s_clz_v2i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 clz %v2i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z3clzDv2_l(<2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i8.spvasm deleted file mode 100644 index f89b946a7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v2i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v2i8 "s_clz_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v2i8_t = OpTypeVector %i8_t 2 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %v2i8_1 = OpConstantComposite %v2i8_t %i8_1 %i8_1 - -; All functions - %s_clz_v2i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 clz %v2i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z3clzDv2_c(<2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i16.spvasm deleted file mode 100644 index 9e7a5fb25..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v3i16 "s_clz_v3i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v3i16_t = OpTypeVector %i16_t 3 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %v3i16_1 = OpConstantComposite %v3i16_t %i16_1 %i16_1 %i16_1 - -; All functions - %s_clz_v3i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v3i16() - %2 = OpLabel - %3 = OpExtInst %v3i16_t %1 clz %v3i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z3clzDv3_s(<3 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i32.spvasm deleted file mode 100644 index 835023b99..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v3i32 "s_clz_v3i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v3i32_t = OpTypeVector %i32_t 3 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %v3i32_1 = OpConstantComposite %v3i32_t %i32_1 %i32_1 %i32_1 - -; All functions - %s_clz_v3i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v3i32() - %2 = OpLabel - %3 = OpExtInst %v3i32_t %1 clz %v3i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i32> @_Z3clzDv3_i(<3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i64.spvasm deleted file mode 100644 index c7969f8e2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v3i64 "s_clz_v3i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v3i64_t = OpTypeVector %i64_t 3 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %v3i64_1 = OpConstantComposite %v3i64_t %i64_1 %i64_1 %i64_1 - -; All functions - %s_clz_v3i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v3i64() - %2 = OpLabel - %3 = OpExtInst %v3i64_t %1 clz %v3i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z3clzDv3_l(<3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i8.spvasm deleted file mode 100644 index 3a59367a7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v3i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v3i8 "s_clz_v3i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v3i8_t = OpTypeVector %i8_t 3 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %v3i8_1 = OpConstantComposite %v3i8_t %i8_1 %i8_1 %i8_1 - -; All functions - %s_clz_v3i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v3i8() - %2 = OpLabel - %3 = OpExtInst %v3i8_t %1 clz %v3i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z3clzDv3_c(<3 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i16.spvasm deleted file mode 100644 index 987d6eaee..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v4i16 "s_clz_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v4i16_t = OpTypeVector %i16_t 4 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %v4i16_1 = OpConstantComposite %v4i16_t %i16_1 %i16_1 %i16_1 %i16_1 - -; All functions - %s_clz_v4i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 clz %v4i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z3clzDv4_s(<4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i32.spvasm deleted file mode 100644 index ce9fbeaa8..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v4i32 "s_clz_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v4i32_t = OpTypeVector %i32_t 4 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %v4i32_1 = OpConstantComposite %v4i32_t %i32_1 %i32_1 %i32_1 %i32_1 - -; All functions - %s_clz_v4i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 clz %v4i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z3clzDv4_i(<4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i64.spvasm deleted file mode 100644 index d8c294af8..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v4i64 "s_clz_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v4i64_t = OpTypeVector %i64_t 4 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %v4i64_1 = OpConstantComposite %v4i64_t %i64_1 %i64_1 %i64_1 %i64_1 - -; All functions - %s_clz_v4i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 clz %v4i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z3clzDv4_l(<4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i8.spvasm deleted file mode 100644 index 641a8b5dd..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v4i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v4i8 "s_clz_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v4i8_t = OpTypeVector %i8_t 4 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %v4i8_1 = OpConstantComposite %v4i8_t %i8_1 %i8_1 %i8_1 %i8_1 - -; All functions - %s_clz_v4i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 clz %v4i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z3clzDv4_c(<4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i16.spvasm deleted file mode 100644 index 40cef1eca..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i16.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v8i16 "s_clz_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v8i16_t = OpTypeVector %i16_t 8 - %s_clz_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %v8i16_1 = OpConstantComposite %v8i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - -; All functions - %s_clz_v8i16 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 clz %v8i16_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z3clzDv8_s(<8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i32.spvasm deleted file mode 100644 index 139c9dc55..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i32.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v8i32 "s_clz_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v8i32_t = OpTypeVector %i32_t 8 - %s_clz_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %v8i32_1 = OpConstantComposite %v8i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - -; All functions - %s_clz_v8i32 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 clz %v8i32_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z3clzDv8_i(<8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i64.spvasm deleted file mode 100644 index 638cbdb38..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i64.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v8i64 "s_clz_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v8i64_t = OpTypeVector %i64_t 8 - %s_clz_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %v8i64_1 = OpConstantComposite %v8i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - -; All functions - %s_clz_v8i64 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 clz %v8i64_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z3clzDv8_l(<8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i8.spvasm deleted file mode 100644 index 977045169..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_clz_v8i8.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_clz_v8i8 "s_clz_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v8i8_t = OpTypeVector %i8_t 8 - %s_clz_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %v8i8_1 = OpConstantComposite %v8i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - -; All functions - %s_clz_v8i8 = OpFunction %void_t None %s_clz_fn_t -; CHECK: define spir_kernel void @s_clz_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 clz %v8i8_1 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z3clzDv8_c(<8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i16.spvasm index 026903ad8..8a2f1a90a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i32.spvasm index 892fd3210..de2737af9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i64.spvasm index ef8d72563..f69f095fd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i8.spvasm index 0e3612d9a..55df92513 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i16.spvasm index 0d3a8bd70..33254aca8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i32.spvasm index 4501f9909..d6cf23a4b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i64.spvasm index bf07efbd6..5ff0d6796 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i8.spvasm index 77c8060f8..b03d13795 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i16.spvasm index 1c4ad1acd..73ee2479a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i32.spvasm index 8ef74c03b..13bb9c53e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i64.spvasm index 805b65530..9af5725e7 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i8.spvasm index 09c74cea9..f79b6d868 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i16.spvasm index 5b78ffe08..65f08cf32 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i32.spvasm index 4413dd63d..257783bba 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i64.spvasm index 03bf91dfb..2b4a18ec8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i8.spvasm index bcc3cd900..1b825b2de 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i16.spvasm index affe43645..1d74e0fab 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i32.spvasm index e53c86c99..71b34af9f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i64.spvasm index 47d369430..7585ee39d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i8.spvasm index 5bc48362e..07530a12c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i16.spvasm index 4cb1b4c53..aff2b86dc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_hadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i32.spvasm index a47892a41..d479b8439 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_hadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i64.spvasm index cc7f5255c..8a71a54a0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_hadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i8.spvasm index 6f8c2404e..f2dab2228 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_hadd_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_hadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_i32.spvasm index 7f56ccbc0..b242e3025 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v16i32.spvasm index 6958a3231..fb29a6197 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v2i32.spvasm index d6fe2bedd..b682e3124 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v3i32.spvasm index 2855c341b..dc965327e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v4i32.spvasm index 240b36176..5b28aa7f2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v8i32.spvasm index d84018513..73410f406 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad24_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_mad24_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i16.spvasm index 224d5e659..72ddfe532 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i32.spvasm index ad2e6649b..f13bda63e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i64.spvasm index 524fe1ba5..7eb3da24b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i8.spvasm index d4bc634dc..147fdf865 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i16.spvasm index a563f54ec..b5d179822 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i32.spvasm index 934cae31c..4a1cd9ebc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i64.spvasm index 72b36ec31..ce0df50b3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i8.spvasm index 29db29205..215ae3f9b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i16.spvasm index 88d724b5a..f14ccbd0b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i32.spvasm index 219048306..ca087d3b1 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i64.spvasm index eb22c685f..6b478983b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i8.spvasm index dbacfb89e..fc3248131 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i16.spvasm index b45a73127..7f8ece523 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i32.spvasm index 55943e102..24688e31c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i64.spvasm index aca2917ee..0bd592bc6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i8.spvasm index d5b398a48..441228233 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i16.spvasm index d6469eeb0..4112429fd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i32.spvasm index 8b62477c6..a08fe3e95 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i64.spvasm index 21cffb5e9..08e9ddceb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i8.spvasm index 701e3a342..9c0e016e7 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i16.spvasm index 553590063..05eae465e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_mad_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i32.spvasm index 6aca96608..9d48c0c0c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_mad_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i64.spvasm index 8cf77975c..5a153d1c9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_mad_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i8.spvasm index fd17fc108..ebfe31cb0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_hi_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_mad_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i16.spvasm index 9382189c5..77d716c8e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i32.spvasm index 2b783dfb4..6d284e400 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i64.spvasm index f62c0f401..34f65180d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i8.spvasm index b975f9635..25916264d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i16.spvasm index d599af8b0..87f55d5e8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i32.spvasm index 2ab6c6981..51e47f9dd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i64.spvasm index a7a052b56..d6e4c9c58 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i8.spvasm index f4edf6404..b20f4c49a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i16.spvasm index 82ec49ca8..060b1d0f6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i32.spvasm index b9691d30c..a6a8ba27f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i64.spvasm index 254765df0..27fd77c8f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i8.spvasm index bd72617ae..6bbac0f04 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i16.spvasm index 8bba2fb69..444c5ee89 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i32.spvasm index da527d7c7..ab61bfa9f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i64.spvasm index 7f9492275..9a483ed9a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i8.spvasm index 59aac1a59..3e5514fe8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i16.spvasm index ff621b74b..6c24c1df2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i32.spvasm index f13a8a46b..bf1672dad 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i64.spvasm index c53784721..9c143f9a4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i8.spvasm index 0045cc9ff..f4aa5c385 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i16.spvasm index 169fbb75c..18fdcaa9a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_mad_sat_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i32.spvasm index e9327be9d..7c9317628 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_mad_sat_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i64.spvasm index 9f1481c44..7528d2e38 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_mad_sat_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i8.spvasm index 4d55091f1..7f4ff0cd9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mad_sat_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_mad_sat_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i16.spvasm index 75e0d8ffe..ae5b78076 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i32.spvasm index c5608e734..ce9722dec 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i64.spvasm index f5ec4df8b..fa2daee8d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i8.spvasm index 8f862f83d..78ab8b8f6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i16.spvasm index 648573ce2..9806dc78e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i32.spvasm index b92137860..81000f019 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i64.spvasm index 65ce27a82..f4c467a8c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i8.spvasm index a86360c0d..e0d1d648c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i16.spvasm index b5b2981cf..f05e07aa5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i32.spvasm index 70d9b5d46..2c10b5adc 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i64.spvasm index cd6f4d9e6..725dd7205 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i8.spvasm index 75c0d1ebd..89888ea18 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i16.spvasm index e9cb9a8e9..50b41b031 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i32.spvasm index fd3d5cea8..0595b708d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i64.spvasm index 8ab92abc4..cb9bbcf02 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i8.spvasm index 8e95d692a..5fed3f6e3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i16.spvasm index 2b6e38dc3..902535ed4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i32.spvasm index aaa62ccbc..26713dcde 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i64.spvasm index ef0e15c4c..5a94477db 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i8.spvasm index 79608bc4f..9f971e578 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i16.spvasm index 60946684b..789c7f9e2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_max_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i32.spvasm index b12c00975..98c2f3b6b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_max_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i64.spvasm index afbe2215f..f0df9c03f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_max_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i8.spvasm index 8ba90b495..16d1ef01c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_max_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_max_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i16.spvasm index fedc0cf18..582cc29eb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i32.spvasm index e1ee1d339..5049fae01 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i64.spvasm index 88c57304b..963cc8ab5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i8.spvasm index 767c7d169..674a88c10 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i16.spvasm index 9b3055e93..396b8e981 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i32.spvasm index ad61823ab..7efd68c08 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i64.spvasm index 812684422..47760f459 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i8.spvasm index 21ac794f1..be39c55dd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i16.spvasm index f69c0b5fb..8528ca195 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i32.spvasm index ffc8af53d..eed8fcd82 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i64.spvasm index 9bbce17e5..5c773d8cd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i8.spvasm index f13399284..9c9646830 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i16.spvasm index 123088498..3ee642383 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i32.spvasm index 44b2acd98..3f0986c75 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i64.spvasm index d8370a7f9..f95999870 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i8.spvasm index 0647fd283..34b1f8888 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i16.spvasm index d8cd5270c..7f5152226 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i32.spvasm index cfd000e42..ca3db1698 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i64.spvasm index 84ed1db36..38e764ca9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i8.spvasm index e3e2611cf..6aafd580f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i16.spvasm index 69c796bfb..cd02c3391 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_min_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i32.spvasm index 587446587..1d23b909b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_min_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i64.spvasm index bf702b512..adc0d8c53 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_min_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i8.spvasm index c2d355f60..3ae16d86a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_min_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_min_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_i32.spvasm index 2006d5ac9..9e0de8fb5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v16i32.spvasm index c880ee5ec..283111397 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v2i32.spvasm index b8ade0d3e..d1882016c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v3i32.spvasm index 5983cbc99..f8245463b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v4i32.spvasm index 530e47466..f2b8d6e07 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v8i32.spvasm index 05088008d..8e72fd29d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul24_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_mul24_fn_t = OpTypeFunction %void_t %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i16.spvasm index d66b80fc1..a83c75dbf 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i32.spvasm index 6ae58fbce..d293fbf52 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i64.spvasm index 9485bc639..9b25be918 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i8.spvasm index 7655cb29f..ec5669806 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i16.spvasm index 6b0171d74..f9d868bfd 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i32.spvasm index 2ee785f5d..44630a12e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i64.spvasm index e2865886e..ef36336db 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i8.spvasm index a01cb7098..9f359d7b6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i16.spvasm index df9892482..740d6f3b3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i32.spvasm index 72df01a3c..1b9550358 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i64.spvasm index 826a2872d..819a87cee 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i8.spvasm index 262c658d5..f8fe5f03c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i16.spvasm index 159750c28..cfc51410c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i32.spvasm index a2caa4005..06d2639be 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i64.spvasm index d1b20c749..8291fbec2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i8.spvasm index dd31cf1a5..99f97cb86 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i16.spvasm index fcea70db2..87e3c09ce 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i32.spvasm index e2881cfd9..6593db8df 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i64.spvasm index fbd929f56..8bb7bf0e5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i8.spvasm index bdbb84388..d02330abb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i16.spvasm index 8f8359867..6551d2993 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_mul_hi_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i32.spvasm index a8441b9b9..67a4196bb 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_mul_hi_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i64.spvasm index 341e4ece6..2e11a01ba 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_mul_hi_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i8.spvasm index 3ed0bc51c..cba171793 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_mul_hi_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_mul_hi_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i16.spvasm deleted file mode 100644 index cdf1eaf58..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i16.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_i16 "s_popcount_i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - -; All functions - %s_popcount_i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_i16() - %2 = OpLabel - %3 = OpExtInst %i16_t %1 popcount %i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i16 @_Z8popcounts(i16 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i32.spvasm deleted file mode 100644 index eb8b74835..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i32.spvasm +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_i32 "s_popcount_i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - -; All functions - %s_popcount_i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_i32() - %2 = OpLabel - %3 = OpExtInst %i32_t %1 popcount %i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z8popcounti(i32 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i64.spvasm deleted file mode 100644 index 769f86d54..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i64.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_i64 "s_popcount_i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - -; All functions - %s_popcount_i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_i64() - %2 = OpLabel - %3 = OpExtInst %i64_t %1 popcount %i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z8popcountl(i64 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i8.spvasm deleted file mode 100644 index d1d5eb3b4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_i8.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_i8 "s_popcount_i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - -; All functions - %s_popcount_i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_i8() - %2 = OpLabel - %3 = OpExtInst %i8_t %1 popcount %i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i8 @_Z8popcountc(i8 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i16.spvasm deleted file mode 100644 index ed1919491..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i16.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v16i16 "s_popcount_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v16i16_t = OpTypeVector %i16_t 16 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %v16i16_3 = OpConstantComposite %v16i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_popcount_v16i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 popcount %v16i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z8popcountDv16_s(<16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i32.spvasm deleted file mode 100644 index f995440ca..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i32.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v16i32 "s_popcount_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v16i32_t = OpTypeVector %i32_t 16 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_popcount_v16i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 popcount %v16i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z8popcountDv16_i(<16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i64.spvasm deleted file mode 100644 index cf24547a1..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i64.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v16i64 "s_popcount_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v16i64_t = OpTypeVector %i64_t 16 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_popcount_v16i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 popcount %v16i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z8popcountDv16_l(<16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i8.spvasm deleted file mode 100644 index 8ef3e622d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v16i8.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v16i8 "s_popcount_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v16i8_t = OpTypeVector %i8_t 16 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %v16i8_3 = OpConstantComposite %v16i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_popcount_v16i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 popcount %v16i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z8popcountDv16_c(<16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i16.spvasm deleted file mode 100644 index badebc3f7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v2i16 "s_popcount_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v2i16_t = OpTypeVector %i16_t 2 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %v2i16_3 = OpConstantComposite %v2i16_t %i16_3 %i16_3 - -; All functions - %s_popcount_v2i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 popcount %v2i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z8popcountDv2_s(<2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i32.spvasm deleted file mode 100644 index 7ba19f5a7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v2i32 "s_popcount_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v2i32_t = OpTypeVector %i32_t 2 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - -; All functions - %s_popcount_v2i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 popcount %v2i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z8popcountDv2_i(<2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i64.spvasm deleted file mode 100644 index c387a5ef6..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v2i64 "s_popcount_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v2i64_t = OpTypeVector %i64_t 2 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - -; All functions - %s_popcount_v2i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 popcount %v2i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z8popcountDv2_l(<2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i8.spvasm deleted file mode 100644 index 4c7e687b8..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v2i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v2i8 "s_popcount_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v2i8_t = OpTypeVector %i8_t 2 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %v2i8_3 = OpConstantComposite %v2i8_t %i8_3 %i8_3 - -; All functions - %s_popcount_v2i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 popcount %v2i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z8popcountDv2_c(<2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i16.spvasm deleted file mode 100644 index 0da0a329c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v3i16 "s_popcount_v3i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v3i16_t = OpTypeVector %i16_t 3 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %v3i16_3 = OpConstantComposite %v3i16_t %i16_3 %i16_3 %i16_3 - -; All functions - %s_popcount_v3i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v3i16() - %2 = OpLabel - %3 = OpExtInst %v3i16_t %1 popcount %v3i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z8popcountDv3_s(<3 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i32.spvasm deleted file mode 100644 index c6f827ec8..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v3i32 "s_popcount_v3i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v3i32_t = OpTypeVector %i32_t 3 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %v3i32_3 = OpConstantComposite %v3i32_t %i32_3 %i32_3 %i32_3 - -; All functions - %s_popcount_v3i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v3i32() - %2 = OpLabel - %3 = OpExtInst %v3i32_t %1 popcount %v3i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i32> @_Z8popcountDv3_i(<3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i64.spvasm deleted file mode 100644 index 89d4b5c0a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v3i64 "s_popcount_v3i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v3i64_t = OpTypeVector %i64_t 3 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %v3i64_3 = OpConstantComposite %v3i64_t %i64_3 %i64_3 %i64_3 - -; All functions - %s_popcount_v3i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v3i64() - %2 = OpLabel - %3 = OpExtInst %v3i64_t %1 popcount %v3i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z8popcountDv3_l(<3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i8.spvasm deleted file mode 100644 index 1818ef101..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v3i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v3i8 "s_popcount_v3i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v3i8_t = OpTypeVector %i8_t 3 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %v3i8_3 = OpConstantComposite %v3i8_t %i8_3 %i8_3 %i8_3 - -; All functions - %s_popcount_v3i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v3i8() - %2 = OpLabel - %3 = OpExtInst %v3i8_t %1 popcount %v3i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z8popcountDv3_c(<3 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i16.spvasm deleted file mode 100644 index 3ed3bb871..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v4i16 "s_popcount_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v4i16_t = OpTypeVector %i16_t 4 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %v4i16_3 = OpConstantComposite %v4i16_t %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_popcount_v4i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 popcount %v4i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z8popcountDv4_s(<4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i32.spvasm deleted file mode 100644 index a9a50f33a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v4i32 "s_popcount_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v4i32_t = OpTypeVector %i32_t 4 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_popcount_v4i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 popcount %v4i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z8popcountDv4_i(<4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i64.spvasm deleted file mode 100644 index d402e25f5..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v4i64 "s_popcount_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v4i64_t = OpTypeVector %i64_t 4 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_popcount_v4i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 popcount %v4i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z8popcountDv4_l(<4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i8.spvasm deleted file mode 100644 index 70b70e8db..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v4i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v4i8 "s_popcount_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v4i8_t = OpTypeVector %i8_t 4 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %v4i8_3 = OpConstantComposite %v4i8_t %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_popcount_v4i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 popcount %v4i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z8popcountDv4_c(<4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i16.spvasm deleted file mode 100644 index 3f09bc34a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i16.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v8i16 "s_popcount_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v8i16_t = OpTypeVector %i16_t 8 - %s_popcount_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %v8i16_3 = OpConstantComposite %v8i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_popcount_v8i16 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 popcount %v8i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z8popcountDv8_s(<8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i32.spvasm deleted file mode 100644 index 9fb25ffb5..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i32.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v8i32 "s_popcount_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v8i32_t = OpTypeVector %i32_t 8 - %s_popcount_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_popcount_v8i32 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 popcount %v8i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z8popcountDv8_i(<8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i64.spvasm deleted file mode 100644 index a72ba57c4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i64.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v8i64 "s_popcount_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v8i64_t = OpTypeVector %i64_t 8 - %s_popcount_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_popcount_v8i64 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 popcount %v8i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z8popcountDv8_l(<8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i8.spvasm deleted file mode 100644 index ef6fac706..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_popcount_v8i8.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_popcount_v8i8 "s_popcount_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v8i8_t = OpTypeVector %i8_t 8 - %s_popcount_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %v8i8_3 = OpConstantComposite %v8i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_popcount_v8i8 = OpFunction %void_t None %s_popcount_fn_t -; CHECK: define spir_kernel void @s_popcount_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 popcount %v8i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z8popcountDv8_c(<8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_32bit.spvasm deleted file mode 100644 index 0c54a44f7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_i16 "s_prefetch_i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %i16_ptr_t = OpTypePointer CrossWorkgroup %i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Ksj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_64bit.spvasm deleted file mode 100644 index c8782202a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i16_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_i16 "s_prefetch_i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %i16_ptr_t = OpTypePointer CrossWorkgroup %i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Ksm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_32bit.spvasm deleted file mode 100644 index b240614f2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_32bit.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_i32 "s_prefetch_i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %i32_ptr_t = OpTypePointer CrossWorkgroup %i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Kij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_64bit.spvasm deleted file mode 100644 index 7c2f9383f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i32_64bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_i32 "s_prefetch_i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %i32_ptr_t = OpTypePointer CrossWorkgroup %i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Kim(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_32bit.spvasm deleted file mode 100644 index bf5adb280..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_i64 "s_prefetch_i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %i64_ptr_t = OpTypePointer CrossWorkgroup %i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Klj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_64bit.spvasm deleted file mode 100644 index c2c6e049f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i64_64bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_i64 "s_prefetch_i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %i64_ptr_t = OpTypePointer CrossWorkgroup %i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Klm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_32bit.spvasm deleted file mode 100644 index bc8b98faa..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_i8 "s_prefetch_i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %i8_ptr_t = OpTypePointer CrossWorkgroup %i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Kcj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_64bit.spvasm deleted file mode 100644 index 7736f4809..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_i8_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_i8 "s_prefetch_i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %i8_ptr_t = OpTypePointer CrossWorkgroup %i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1Kcm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_32bit.spvasm deleted file mode 100644 index 89a9b8120..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i16 "s_prefetch_v16i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %v16i16_t = OpTypeVector %i16_t 16 - %v16i16_ptr_t = OpTypePointer CrossWorkgroup %v16i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v16i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_sj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_64bit.spvasm deleted file mode 100644 index 084b7a18e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i16_64bit.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i16 "s_prefetch_v16i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %v16i16_t = OpTypeVector %i16_t 16 - %v16i16_ptr_t = OpTypePointer CrossWorkgroup %v16i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v16i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_sm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_32bit.spvasm deleted file mode 100644 index 8b8721cf2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i32 "s_prefetch_v16i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %v16i32_t = OpTypeVector %i32_t 16 - %v16i32_ptr_t = OpTypePointer CrossWorkgroup %v16i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v16i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_ij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_64bit.spvasm deleted file mode 100644 index 22acf4e9d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i32_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i32 "s_prefetch_v16i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %v16i32_t = OpTypeVector %i32_t 16 - %v16i32_ptr_t = OpTypePointer CrossWorkgroup %v16i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v16i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_im(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_32bit.spvasm deleted file mode 100644 index baa812eb9..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i64 "s_prefetch_v16i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %v16i64_t = OpTypeVector %i64_t 16 - %v16i64_ptr_t = OpTypePointer CrossWorkgroup %v16i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v16i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_lj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_64bit.spvasm deleted file mode 100644 index 8fcb188bf..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i64_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i64 "s_prefetch_v16i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %v16i64_t = OpTypeVector %i64_t 16 - %v16i64_ptr_t = OpTypePointer CrossWorkgroup %v16i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v16i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_lm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_32bit.spvasm deleted file mode 100644 index 3b2aa046e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i8 "s_prefetch_v16i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %v16i8_t = OpTypeVector %i8_t 16 - %v16i8_ptr_t = OpTypePointer CrossWorkgroup %v16i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v16i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_cj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_64bit.spvasm deleted file mode 100644 index f210c901d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v16i8_64bit.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v16i8 "s_prefetch_v16i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %v16i8_t = OpTypeVector %i8_t 16 - %v16i8_ptr_t = OpTypePointer CrossWorkgroup %v16i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v16i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v16i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v16i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v16i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv16_cm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_32bit.spvasm deleted file mode 100644 index a2ce250e5..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i16 "s_prefetch_v2i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %v2i16_t = OpTypeVector %i16_t 2 - %v2i16_ptr_t = OpTypePointer CrossWorkgroup %v2i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v2i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_sj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_64bit.spvasm deleted file mode 100644 index 51d841ec9..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i16_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i16 "s_prefetch_v2i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %v2i16_t = OpTypeVector %i16_t 2 - %v2i16_ptr_t = OpTypePointer CrossWorkgroup %v2i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v2i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_sm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_32bit.spvasm deleted file mode 100644 index 35b0f51ee..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i32 "s_prefetch_v2i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %v2i32_t = OpTypeVector %i32_t 2 - %v2i32_ptr_t = OpTypePointer CrossWorkgroup %v2i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v2i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_ij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_64bit.spvasm deleted file mode 100644 index 189599407..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i32_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i32 "s_prefetch_v2i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %v2i32_t = OpTypeVector %i32_t 2 - %v2i32_ptr_t = OpTypePointer CrossWorkgroup %v2i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v2i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_im(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_32bit.spvasm deleted file mode 100644 index 77d03907e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i64 "s_prefetch_v2i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %v2i64_t = OpTypeVector %i64_t 2 - %v2i64_ptr_t = OpTypePointer CrossWorkgroup %v2i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v2i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_lj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_64bit.spvasm deleted file mode 100644 index 1cbb97628..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i64_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i64 "s_prefetch_v2i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %v2i64_t = OpTypeVector %i64_t 2 - %v2i64_ptr_t = OpTypePointer CrossWorkgroup %v2i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v2i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_lm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_32bit.spvasm deleted file mode 100644 index 80776a3e2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i8 "s_prefetch_v2i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %v2i8_t = OpTypeVector %i8_t 2 - %v2i8_ptr_t = OpTypePointer CrossWorkgroup %v2i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v2i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_cj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_64bit.spvasm deleted file mode 100644 index 9c02d5849..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v2i8_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v2i8 "s_prefetch_v2i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %v2i8_t = OpTypeVector %i8_t 2 - %v2i8_ptr_t = OpTypePointer CrossWorkgroup %v2i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v2i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v2i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v2i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v2i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv2_cm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_32bit.spvasm deleted file mode 100644 index d038db012..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i16 "s_prefetch_v3i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %v3i16_t = OpTypeVector %i16_t 3 - %v3i16_ptr_t = OpTypePointer CrossWorkgroup %v3i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v3i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_sj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_64bit.spvasm deleted file mode 100644 index 23ea1594b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i16_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i16 "s_prefetch_v3i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %v3i16_t = OpTypeVector %i16_t 3 - %v3i16_ptr_t = OpTypePointer CrossWorkgroup %v3i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v3i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_sm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_32bit.spvasm deleted file mode 100644 index 5b3815078..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i32 "s_prefetch_v3i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %v3i32_t = OpTypeVector %i32_t 3 - %v3i32_ptr_t = OpTypePointer CrossWorkgroup %v3i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v3i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_ij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_64bit.spvasm deleted file mode 100644 index 35a838f8f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i32_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i32 "s_prefetch_v3i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %v3i32_t = OpTypeVector %i32_t 3 - %v3i32_ptr_t = OpTypePointer CrossWorkgroup %v3i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v3i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_im(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_32bit.spvasm deleted file mode 100644 index 79eb7643b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i64 "s_prefetch_v3i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %v3i64_t = OpTypeVector %i64_t 3 - %v3i64_ptr_t = OpTypePointer CrossWorkgroup %v3i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v3i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_lj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_64bit.spvasm deleted file mode 100644 index ad1c48a4e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i64_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i64 "s_prefetch_v3i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %v3i64_t = OpTypeVector %i64_t 3 - %v3i64_ptr_t = OpTypePointer CrossWorkgroup %v3i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v3i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_lm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_32bit.spvasm deleted file mode 100644 index 4b6fc9348..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i8 "s_prefetch_v3i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %v3i8_t = OpTypeVector %i8_t 3 - %v3i8_ptr_t = OpTypePointer CrossWorkgroup %v3i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v3i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_cj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_64bit.spvasm deleted file mode 100644 index 0e9b29b96..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v3i8_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v3i8 "s_prefetch_v3i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %v3i8_t = OpTypeVector %i8_t 3 - %v3i8_ptr_t = OpTypePointer CrossWorkgroup %v3i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v3i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v3i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v3i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v3i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv3_cm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_32bit.spvasm deleted file mode 100644 index 4380f524e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i16 "s_prefetch_v4i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %v4i16_t = OpTypeVector %i16_t 4 - %v4i16_ptr_t = OpTypePointer CrossWorkgroup %v4i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v4i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_sj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_64bit.spvasm deleted file mode 100644 index 3e84287b3..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i16_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i16 "s_prefetch_v4i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %v4i16_t = OpTypeVector %i16_t 4 - %v4i16_ptr_t = OpTypePointer CrossWorkgroup %v4i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v4i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_sm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_32bit.spvasm deleted file mode 100644 index 25926e2f0..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_32bit.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i32 "s_prefetch_v4i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %v4i32_t = OpTypeVector %i32_t 4 - %v4i32_ptr_t = OpTypePointer CrossWorkgroup %v4i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v4i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_ij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_64bit.spvasm deleted file mode 100644 index 188f3c997..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i32_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i32 "s_prefetch_v4i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %v4i32_t = OpTypeVector %i32_t 4 - %v4i32_ptr_t = OpTypePointer CrossWorkgroup %v4i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v4i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_im(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_32bit.spvasm deleted file mode 100644 index f6c8db4f3..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i64 "s_prefetch_v4i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %v4i64_t = OpTypeVector %i64_t 4 - %v4i64_ptr_t = OpTypePointer CrossWorkgroup %v4i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v4i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_lj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_64bit.spvasm deleted file mode 100644 index 4537b1553..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i64_64bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i64 "s_prefetch_v4i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %v4i64_t = OpTypeVector %i64_t 4 - %v4i64_ptr_t = OpTypePointer CrossWorkgroup %v4i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v4i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_lm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_32bit.spvasm deleted file mode 100644 index f47a65886..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i8 "s_prefetch_v4i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %v4i8_t = OpTypeVector %i8_t 4 - %v4i8_ptr_t = OpTypePointer CrossWorkgroup %v4i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v4i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_cj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_64bit.spvasm deleted file mode 100644 index b4485a2b4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v4i8_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v4i8 "s_prefetch_v4i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %v4i8_t = OpTypeVector %i8_t 4 - %v4i8_ptr_t = OpTypePointer CrossWorkgroup %v4i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v4i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v4i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v4i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v4i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv4_cm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_32bit.spvasm deleted file mode 100644 index 39d903352..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i16 "s_prefetch_v8i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui32_t = OpTypeInt 32 0 - %v8i16_t = OpTypeVector %i16_t 8 - %v8i16_ptr_t = OpTypePointer CrossWorkgroup %v8i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i16_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v8i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_sj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_64bit.spvasm deleted file mode 100644 index 8d9ace61a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i16_64bit.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i16 "s_prefetch_v8i16" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %ui64_t = OpTypeInt 64 0 - %v8i16_t = OpTypeVector %i16_t 8 - %v8i16_ptr_t = OpTypePointer CrossWorkgroup %v8i16_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i16_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v8i16 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i16_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i16(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_sm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_32bit.spvasm deleted file mode 100644 index 35ce2e30b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_32bit.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i32 "s_prefetch_v8i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui32_t = OpTypeInt 32 0 - %v8i32_t = OpTypeVector %i32_t 8 - %v8i32_ptr_t = OpTypePointer CrossWorkgroup %v8i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i32_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v8i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_ij(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_64bit.spvasm deleted file mode 100644 index cb1d683f2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i32_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i32 "s_prefetch_v8i32" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %ui64_t = OpTypeInt 64 0 - %v8i32_t = OpTypeVector %i32_t 8 - %v8i32_ptr_t = OpTypePointer CrossWorkgroup %v8i32_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i32_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v8i32 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i32_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i32(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_im(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_32bit.spvasm deleted file mode 100644 index c8a3b4fd4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i64 "s_prefetch_v8i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui32_t = OpTypeInt 32 0 - %v8i64_t = OpTypeVector %i64_t 8 - %v8i64_ptr_t = OpTypePointer CrossWorkgroup %v8i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i64_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v8i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_lj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_64bit.spvasm deleted file mode 100644 index 9513f21be..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i64_64bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i64 "s_prefetch_v8i64" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %ui64_t = OpTypeInt 64 0 - %v8i64_t = OpTypeVector %i64_t 8 - %v8i64_ptr_t = OpTypePointer CrossWorkgroup %v8i64_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i64_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v8i64 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i64_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i64(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_lm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_32bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_32bit.spvasm deleted file mode 100644 index 2c925489a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_32bit.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 32 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical32 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i8 "s_prefetch_v8i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui32_t = OpTypeInt 32 0 - %v8i8_t = OpTypeVector %i8_t 8 - %v8i8_ptr_t = OpTypePointer CrossWorkgroup %v8i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i8_ptr_t - %ui32_1 = OpConstant %ui32_t 2 - -; All functions - %s_prefetch_v8i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui32_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_cj(ptr addrspace(1) %in_ptr, i32 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_64bit.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_64bit.spvasm deleted file mode 100644 index 3fef97846..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_prefetch_v8i8_64bit.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - OpCapability Int8 - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_prefetch_v8i8 "s_prefetch_v8i8" - OpSource OpenCL_C 102000 - OpName %in_ptr "in_ptr" - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %ui64_t = OpTypeInt 64 0 - %v8i8_t = OpTypeVector %i8_t 8 - %v8i8_ptr_t = OpTypePointer CrossWorkgroup %v8i8_t - %s_prefetch_fn_t = OpTypeFunction %void_t %v8i8_ptr_t - %ui64_1 = OpConstant %ui64_t 2 - -; All functions - %s_prefetch_v8i8 = OpFunction %void_t None %s_prefetch_fn_t - %in_ptr = OpFunctionParameter %v8i8_ptr_t -; CHECK: define spir_kernel void @s_prefetch_v8i8(ptr addrspace(1) %in_ptr) - %2 = OpLabel - %3 = OpExtInst %void_t %1 prefetch %in_ptr %ui64_1 -; CHECK: call spir_func void @_Z8prefetchPU3AS1KDv8_cm(ptr addrspace(1) %in_ptr, i64 2) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i16.spvasm index 8f35e5e5a..8c0315567 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 %i16_2 = OpConstant %i16_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i32.spvasm index 21003be9e..0af445953 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 %i32_2 = OpConstant %i32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i64.spvasm index 2b46226fa..be9671a03 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 %i64_2 = OpConstant %i64_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i8.spvasm index dcbec3184..c884afb9b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 %i8_2 = OpConstant %i8_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i16.spvasm index 976664347..e8bf58629 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i32.spvasm index 9589a9ea9..4f887e193 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i64.spvasm index 6885609a6..065f75ac8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i8.spvasm index b80a2c8c0..083f9df1f 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i16.spvasm index e38d9c7ff..23ef3b10a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i32.spvasm index 37bd552ff..95deea7c6 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i64.spvasm index c626a7374..f471fc36e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i8.spvasm index f8a66de03..3b18ab110 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i16.spvasm index 8e76191cf..776aea68e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i32.spvasm index 502fe712d..5e80c4cb5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i64.spvasm index b3a139c2b..303019409 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i8.spvasm index aa8a4e308..f488a619a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i16.spvasm index 04b4f7798..1e2ac1dc0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i32.spvasm index 49208cbf6..16c209756 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i64.spvasm index b17ed9383..9abbe6e57 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i8.spvasm index 5777b097e..f7a5d02e8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i16.spvasm index def1b4024..151683d8e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_rhadd_fn_t = OpTypeFunction %void_t %i16_1 = OpConstant %i16_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i32.spvasm index dda52d8a4..93413f921 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_rhadd_fn_t = OpTypeFunction %void_t %i32_1 = OpConstant %i32_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i64.spvasm index 9e0849475..b2663d897 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_rhadd_fn_t = OpTypeFunction %void_t %i64_1 = OpConstant %i64_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i8.spvasm index 4cbe1f8dc..734fc8000 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rhadd_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_rhadd_fn_t = OpTypeFunction %void_t %i8_1 = OpConstant %i8_t 1 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i16.spvasm deleted file mode 100644 index e3677545f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i16.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_i16 "s_rotate_i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - -; All functions - %s_rotate_i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_i16() - %2 = OpLabel - %3 = OpExtInst %i16_t %1 rotate %i16_2 %i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i16 @_Z6rotatess(i16 signext 2, i16 signext 4) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i32.spvasm deleted file mode 100644 index 3e6aa26ba..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i32.spvasm +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_i32 "s_rotate_i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - -; All functions - %s_rotate_i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_i32() - %2 = OpLabel - %3 = OpExtInst %i32_t %1 rotate %i32_2 %i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z6rotateii(i32 2, i32 4) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i64.spvasm deleted file mode 100644 index cf9a3de82..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i64.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_i64 "s_rotate_i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - -; All functions - %s_rotate_i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_i64() - %2 = OpLabel - %3 = OpExtInst %i64_t %1 rotate %i64_2 %i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z6rotatell(i64 2, i64 4) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i8.spvasm deleted file mode 100644 index c367f14b6..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_i8.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_i8 "s_rotate_i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - -; All functions - %s_rotate_i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_i8() - %2 = OpLabel - %3 = OpExtInst %i8_t %1 rotate %i8_2 %i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i8 @_Z6rotatecc(i8 signext 2, i8 signext 4) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i16.spvasm deleted file mode 100644 index 6f4f53966..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i16.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v16i16 "s_rotate_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v16i16_t = OpTypeVector %i16_t 16 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - %v16i16_2 = OpConstantComposite %v16i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v16i16_4 = OpConstantComposite %v16i16_t %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 - -; All functions - %s_rotate_v16i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 rotate %v16i16_2 %v16i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z6rotateDv16_sS_(<16 x i16> , <16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i32.spvasm deleted file mode 100644 index ffd4a8c5e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i32.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v16i32 "s_rotate_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v16i32_t = OpTypeVector %i32_t 16 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - %v16i32_2 = OpConstantComposite %v16i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v16i32_4 = OpConstantComposite %v16i32_t %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 - -; All functions - %s_rotate_v16i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 rotate %v16i32_2 %v16i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z6rotateDv16_iS_(<16 x i32> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i64.spvasm deleted file mode 100644 index c6bd7f92b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i64.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v16i64 "s_rotate_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v16i64_t = OpTypeVector %i64_t 16 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - %v16i64_2 = OpConstantComposite %v16i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v16i64_4 = OpConstantComposite %v16i64_t %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 - -; All functions - %s_rotate_v16i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 rotate %v16i64_2 %v16i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z6rotateDv16_lS_(<16 x i64> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i8.spvasm deleted file mode 100644 index d2dacc57c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v16i8.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v16i8 "s_rotate_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v16i8_t = OpTypeVector %i8_t 16 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - %v16i8_2 = OpConstantComposite %v16i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v16i8_4 = OpConstantComposite %v16i8_t %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 - -; All functions - %s_rotate_v16i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 rotate %v16i8_2 %v16i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z6rotateDv16_cS_(<16 x i8> , <16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i16.spvasm deleted file mode 100644 index fa1e6de0b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i16.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v2i16 "s_rotate_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v2i16_t = OpTypeVector %i16_t 2 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - %v2i16_2 = OpConstantComposite %v2i16_t %i16_2 %i16_2 - %v2i16_4 = OpConstantComposite %v2i16_t %i16_4 %i16_4 - -; All functions - %s_rotate_v2i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 rotate %v2i16_2 %v2i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z6rotateDv2_sS_(<2 x i16> , <2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i32.spvasm deleted file mode 100644 index 22ac8b998..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i32.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v2i32 "s_rotate_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v2i32_t = OpTypeVector %i32_t 2 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - %v2i32_2 = OpConstantComposite %v2i32_t %i32_2 %i32_2 - %v2i32_4 = OpConstantComposite %v2i32_t %i32_4 %i32_4 - -; All functions - %s_rotate_v2i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 rotate %v2i32_2 %v2i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z6rotateDv2_iS_(<2 x i32> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i64.spvasm deleted file mode 100644 index f892dde62..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i64.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v2i64 "s_rotate_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v2i64_t = OpTypeVector %i64_t 2 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - %v2i64_2 = OpConstantComposite %v2i64_t %i64_2 %i64_2 - %v2i64_4 = OpConstantComposite %v2i64_t %i64_4 %i64_4 - -; All functions - %s_rotate_v2i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 rotate %v2i64_2 %v2i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z6rotateDv2_lS_(<2 x i64> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i8.spvasm deleted file mode 100644 index 684d2f3a1..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v2i8.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v2i8 "s_rotate_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v2i8_t = OpTypeVector %i8_t 2 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - %v2i8_2 = OpConstantComposite %v2i8_t %i8_2 %i8_2 - %v2i8_4 = OpConstantComposite %v2i8_t %i8_4 %i8_4 - -; All functions - %s_rotate_v2i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 rotate %v2i8_2 %v2i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z6rotateDv2_cS_(<2 x i8> , <2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i16.spvasm deleted file mode 100644 index 7bc6e9d25..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i16.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v3i16 "s_rotate_v3i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v3i16_t = OpTypeVector %i16_t 3 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - %v3i16_2 = OpConstantComposite %v3i16_t %i16_2 %i16_2 %i16_2 - %v3i16_4 = OpConstantComposite %v3i16_t %i16_4 %i16_4 %i16_4 - -; All functions - %s_rotate_v3i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v3i16() - %2 = OpLabel - %3 = OpExtInst %v3i16_t %1 rotate %v3i16_2 %v3i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z6rotateDv3_sS_(<3 x i16> , <3 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i32.spvasm deleted file mode 100644 index ac0d2d08b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i32.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v3i32 "s_rotate_v3i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v3i32_t = OpTypeVector %i32_t 3 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - %v3i32_2 = OpConstantComposite %v3i32_t %i32_2 %i32_2 %i32_2 - %v3i32_4 = OpConstantComposite %v3i32_t %i32_4 %i32_4 %i32_4 - -; All functions - %s_rotate_v3i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v3i32() - %2 = OpLabel - %3 = OpExtInst %v3i32_t %1 rotate %v3i32_2 %v3i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i32> @_Z6rotateDv3_iS_(<3 x i32> , <3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i64.spvasm deleted file mode 100644 index c5a0345a0..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i64.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v3i64 "s_rotate_v3i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v3i64_t = OpTypeVector %i64_t 3 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - %v3i64_2 = OpConstantComposite %v3i64_t %i64_2 %i64_2 %i64_2 - %v3i64_4 = OpConstantComposite %v3i64_t %i64_4 %i64_4 %i64_4 - -; All functions - %s_rotate_v3i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v3i64() - %2 = OpLabel - %3 = OpExtInst %v3i64_t %1 rotate %v3i64_2 %v3i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z6rotateDv3_lS_(<3 x i64> , <3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i8.spvasm deleted file mode 100644 index 736836770..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v3i8.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v3i8 "s_rotate_v3i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v3i8_t = OpTypeVector %i8_t 3 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - %v3i8_2 = OpConstantComposite %v3i8_t %i8_2 %i8_2 %i8_2 - %v3i8_4 = OpConstantComposite %v3i8_t %i8_4 %i8_4 %i8_4 - -; All functions - %s_rotate_v3i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v3i8() - %2 = OpLabel - %3 = OpExtInst %v3i8_t %1 rotate %v3i8_2 %v3i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z6rotateDv3_cS_(<3 x i8> , <3 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i16.spvasm deleted file mode 100644 index c6eba885b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i16.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v4i16 "s_rotate_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v4i16_t = OpTypeVector %i16_t 4 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - %v4i16_2 = OpConstantComposite %v4i16_t %i16_2 %i16_2 %i16_2 %i16_2 - %v4i16_4 = OpConstantComposite %v4i16_t %i16_4 %i16_4 %i16_4 %i16_4 - -; All functions - %s_rotate_v4i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 rotate %v4i16_2 %v4i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z6rotateDv4_sS_(<4 x i16> , <4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i32.spvasm deleted file mode 100644 index de651c880..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i32.spvasm +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v4i32 "s_rotate_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v4i32_t = OpTypeVector %i32_t 4 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - %v4i32_2 = OpConstantComposite %v4i32_t %i32_2 %i32_2 %i32_2 %i32_2 - %v4i32_4 = OpConstantComposite %v4i32_t %i32_4 %i32_4 %i32_4 %i32_4 - -; All functions - %s_rotate_v4i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 rotate %v4i32_2 %v4i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z6rotateDv4_iS_(<4 x i32> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i64.spvasm deleted file mode 100644 index a4a777ecf..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i64.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v4i64 "s_rotate_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v4i64_t = OpTypeVector %i64_t 4 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - %v4i64_2 = OpConstantComposite %v4i64_t %i64_2 %i64_2 %i64_2 %i64_2 - %v4i64_4 = OpConstantComposite %v4i64_t %i64_4 %i64_4 %i64_4 %i64_4 - -; All functions - %s_rotate_v4i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 rotate %v4i64_2 %v4i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z6rotateDv4_lS_(<4 x i64> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i8.spvasm deleted file mode 100644 index a6d46f83c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v4i8.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v4i8 "s_rotate_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v4i8_t = OpTypeVector %i8_t 4 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - %v4i8_2 = OpConstantComposite %v4i8_t %i8_2 %i8_2 %i8_2 %i8_2 - %v4i8_4 = OpConstantComposite %v4i8_t %i8_4 %i8_4 %i8_4 %i8_4 - -; All functions - %s_rotate_v4i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 rotate %v4i8_2 %v4i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z6rotateDv4_cS_(<4 x i8> , <4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i16.spvasm deleted file mode 100644 index 4d92a207b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i16.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v8i16 "s_rotate_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v8i16_t = OpTypeVector %i16_t 8 - %s_rotate_fn_t = OpTypeFunction %void_t - %i16_2 = OpConstant %i16_t 2 - %i16_4 = OpConstant %i16_t 4 - %v8i16_2 = OpConstantComposite %v8i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v8i16_4 = OpConstantComposite %v8i16_t %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 - -; All functions - %s_rotate_v8i16 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 rotate %v8i16_2 %v8i16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z6rotateDv8_sS_(<8 x i16> , <8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i32.spvasm deleted file mode 100644 index 924e14ff4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i32.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v8i32 "s_rotate_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v8i32_t = OpTypeVector %i32_t 8 - %s_rotate_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_4 = OpConstant %i32_t 4 - %v8i32_2 = OpConstantComposite %v8i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v8i32_4 = OpConstantComposite %v8i32_t %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 - -; All functions - %s_rotate_v8i32 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 rotate %v8i32_2 %v8i32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z6rotateDv8_iS_(<8 x i32> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i64.spvasm deleted file mode 100644 index 7add03fde..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i64.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v8i64 "s_rotate_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v8i64_t = OpTypeVector %i64_t 8 - %s_rotate_fn_t = OpTypeFunction %void_t - %i64_2 = OpConstant %i64_t 2 - %i64_4 = OpConstant %i64_t 4 - %v8i64_2 = OpConstantComposite %v8i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v8i64_4 = OpConstantComposite %v8i64_t %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 - -; All functions - %s_rotate_v8i64 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 rotate %v8i64_2 %v8i64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z6rotateDv8_lS_(<8 x i64> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i8.spvasm deleted file mode 100644 index 4d044ddd2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_rotate_v8i8.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_rotate_v8i8 "s_rotate_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v8i8_t = OpTypeVector %i8_t 8 - %s_rotate_fn_t = OpTypeFunction %void_t - %i8_2 = OpConstant %i8_t 2 - %i8_4 = OpConstant %i8_t 4 - %v8i8_2 = OpConstantComposite %v8i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v8i8_4 = OpConstantComposite %v8i8_t %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 - -; All functions - %s_rotate_v8i8 = OpFunction %void_t None %s_rotate_fn_t -; CHECK: define spir_kernel void @s_rotate_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 rotate %v8i8_2 %v8i8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z6rotateDv8_cS_(<8 x i8> , <8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_double.spvasm deleted file mode 100644 index df8d0107d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_double.spvasm +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_double "select_double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - -; All functions - %select_double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_double() - %2 = OpLabel - %3 = OpExtInst %double_t %1 select %double_1 %double_2 %i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func double @_Z6selectddl(double 1.000000e+00, double 2.000000e+00, i64 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_float.spvasm deleted file mode 100644 index e5b12d2de..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_float.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_float "select_float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - -; All functions - %select_float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_float() - %2 = OpLabel - %3 = OpExtInst %float_t %1 select %float_1 %float_2 %i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func float @_Z6selectffi(float 1.000000e+00, float 2.000000e+00, i32 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i16.spvasm deleted file mode 100644 index ca3fc4872..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i16.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_i16 "s_select_i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - -; All functions - %s_select_i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_i16() - %2 = OpLabel - %3 = OpExtInst %i16_t %1 select %i16_1 %i16_2 %i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i16 @_Z6selectsss(i16 signext 1, i16 signext 2, i16 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i32.spvasm deleted file mode 100644 index 6c3b23c6b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i32.spvasm +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_i32 "s_select_i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - -; All functions - %s_select_i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_i32() - %2 = OpLabel - %3 = OpExtInst %i32_t %1 select %i32_1 %i32_2 %i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z6selectiii(i32 1, i32 2, i32 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i64.spvasm deleted file mode 100644 index 76ae4effd..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i64.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_i64 "s_select_i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - -; All functions - %s_select_i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_i64() - %2 = OpLabel - %3 = OpExtInst %i64_t %1 select %i64_1 %i64_2 %i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z6selectlll(i64 1, i64 2, i64 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i8.spvasm deleted file mode 100644 index dc9d2cd50..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_i8.spvasm +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_i8 "s_select_i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - -; All functions - %s_select_i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_i8() - %2 = OpLabel - %3 = OpExtInst %i8_t %1 select %i8_1 %i8_2 %i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func signext i8 @_Z6selectccc(i8 signext 1, i8 signext 2, i8 signext 3) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16double.spvasm deleted file mode 100644 index 2e6549f5f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16double.spvasm +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v16double "select_v16double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %v16i64_t = OpTypeVector %i64_t 16 - %v16double_t = OpTypeVector %double_t 16 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - %v16double_1 = OpConstantComposite %v16double_t %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 - %v16double_2 = OpConstantComposite %v16double_t %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %select_v16double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v16double() - %2 = OpLabel - %3 = OpExtInst %v16double_t %1 select %v16double_1 %v16double_2 %v16i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x double> @_Z6selectDv16_dS_Dv16_l(<16 x double> , <16 x double> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16float.spvasm deleted file mode 100644 index daa269121..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16float.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v16float "select_v16float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %v16i32_t = OpTypeVector %i32_t 16 - %v16float_t = OpTypeVector %float_t 16 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - %v16float_1 = OpConstantComposite %v16float_t %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 - %v16float_2 = OpConstantComposite %v16float_t %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %select_v16float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v16float() - %2 = OpLabel - %3 = OpExtInst %v16float_t %1 select %v16float_1 %v16float_2 %v16i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x float> @_Z6selectDv16_fS_Dv16_i(<16 x float> , <16 x float> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i16.spvasm deleted file mode 100644 index 3186633bc..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v16i16 "s_select_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v16i16_t = OpTypeVector %i16_t 16 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v16i16_1 = OpConstantComposite %v16i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - %v16i16_2 = OpConstantComposite %v16i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v16i16_3 = OpConstantComposite %v16i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_select_v16i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 select %v16i16_1 %v16i16_2 %v16i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z6selectDv16_sS_S_(<16 x i16> , <16 x i16> , <16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i32.spvasm deleted file mode 100644 index 98a3fc610..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v16i32 "s_select_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v16i32_t = OpTypeVector %i32_t 16 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v16i32_1 = OpConstantComposite %v16i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - %v16i32_2 = OpConstantComposite %v16i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_select_v16i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 select %v16i32_1 %v16i32_2 %v16i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z6selectDv16_iS_S_(<16 x i32> , <16 x i32> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i64.spvasm deleted file mode 100644 index c58a16dec..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v16i64 "s_select_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v16i64_t = OpTypeVector %i64_t 16 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v16i64_1 = OpConstantComposite %v16i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - %v16i64_2 = OpConstantComposite %v16i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_select_v16i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 select %v16i64_1 %v16i64_2 %v16i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z6selectDv16_lS_S_(<16 x i64> , <16 x i64> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i8.spvasm deleted file mode 100644 index 996e0d736..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v16i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v16i8 "s_select_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v16i8_t = OpTypeVector %i8_t 16 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v16i8_1 = OpConstantComposite %v16i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - %v16i8_2 = OpConstantComposite %v16i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v16i8_3 = OpConstantComposite %v16i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_select_v16i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 select %v16i8_1 %v16i8_2 %v16i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z6selectDv16_cS_S_(<16 x i8> , <16 x i8> , <16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2double.spvasm deleted file mode 100644 index e9a5e1d42..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2double.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v2double "select_v2double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %v2i64_t = OpTypeVector %i64_t 2 - %v2double_t = OpTypeVector %double_t 2 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - %v2double_1 = OpConstantComposite %v2double_t %double_1 %double_1 - %v2double_2 = OpConstantComposite %v2double_t %double_2 %double_2 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - -; All functions - %select_v2double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v2double() - %2 = OpLabel - %3 = OpExtInst %v2double_t %1 select %v2double_1 %v2double_2 %v2i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x double> @_Z6selectDv2_dS_Dv2_l(<2 x double> , <2 x double> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2float.spvasm deleted file mode 100644 index d73582175..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2float.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v2float "select_v2float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %v2i32_t = OpTypeVector %i32_t 2 - %v2float_t = OpTypeVector %float_t 2 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - %v2float_1 = OpConstantComposite %v2float_t %float_1 %float_1 - %v2float_2 = OpConstantComposite %v2float_t %float_2 %float_2 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - -; All functions - %select_v2float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v2float() - %2 = OpLabel - %3 = OpExtInst %v2float_t %1 select %v2float_1 %v2float_2 %v2i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x float> @_Z6selectDv2_fS_Dv2_i(<2 x float> , <2 x float> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i16.spvasm deleted file mode 100644 index 567abb189..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v2i16 "s_select_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v2i16_t = OpTypeVector %i16_t 2 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v2i16_1 = OpConstantComposite %v2i16_t %i16_1 %i16_1 - %v2i16_2 = OpConstantComposite %v2i16_t %i16_2 %i16_2 - %v2i16_3 = OpConstantComposite %v2i16_t %i16_3 %i16_3 - -; All functions - %s_select_v2i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 select %v2i16_1 %v2i16_2 %v2i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z6selectDv2_sS_S_(<2 x i16> , <2 x i16> , <2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i32.spvasm deleted file mode 100644 index e47e9d689..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v2i32 "s_select_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v2i32_t = OpTypeVector %i32_t 2 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v2i32_1 = OpConstantComposite %v2i32_t %i32_1 %i32_1 - %v2i32_2 = OpConstantComposite %v2i32_t %i32_2 %i32_2 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - -; All functions - %s_select_v2i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 select %v2i32_1 %v2i32_2 %v2i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z6selectDv2_iS_S_(<2 x i32> , <2 x i32> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i64.spvasm deleted file mode 100644 index 2619461eb..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v2i64 "s_select_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v2i64_t = OpTypeVector %i64_t 2 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v2i64_1 = OpConstantComposite %v2i64_t %i64_1 %i64_1 - %v2i64_2 = OpConstantComposite %v2i64_t %i64_2 %i64_2 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - -; All functions - %s_select_v2i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 select %v2i64_1 %v2i64_2 %v2i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z6selectDv2_lS_S_(<2 x i64> , <2 x i64> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i8.spvasm deleted file mode 100644 index 1b94232e5..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v2i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v2i8 "s_select_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v2i8_t = OpTypeVector %i8_t 2 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v2i8_1 = OpConstantComposite %v2i8_t %i8_1 %i8_1 - %v2i8_2 = OpConstantComposite %v2i8_t %i8_2 %i8_2 - %v2i8_3 = OpConstantComposite %v2i8_t %i8_3 %i8_3 - -; All functions - %s_select_v2i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 select %v2i8_1 %v2i8_2 %v2i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z6selectDv2_cS_S_(<2 x i8> , <2 x i8> , <2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3double.spvasm deleted file mode 100644 index 7d507554e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3double.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v3double "select_v3double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %v3i64_t = OpTypeVector %i64_t 3 - %v3double_t = OpTypeVector %double_t 3 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - %v3double_1 = OpConstantComposite %v3double_t %double_1 %double_1 %double_1 - %v3double_2 = OpConstantComposite %v3double_t %double_2 %double_2 %double_2 - %v3i64_3 = OpConstantComposite %v3i64_t %i64_3 %i64_3 %i64_3 - -; All functions - %select_v3double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v3double() - %2 = OpLabel - %3 = OpExtInst %v3double_t %1 select %v3double_1 %v3double_2 %v3i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x double> @_Z6selectDv3_dS_Dv3_l(<3 x double> , <3 x double> , <3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3float.spvasm deleted file mode 100644 index c36657caf..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3float.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v3float "select_v3float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %v3i32_t = OpTypeVector %i32_t 3 - %v3float_t = OpTypeVector %float_t 3 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - %v3float_1 = OpConstantComposite %v3float_t %float_1 %float_1 %float_1 - %v3float_2 = OpConstantComposite %v3float_t %float_2 %float_2 %float_2 - %v3i32_3 = OpConstantComposite %v3i32_t %i32_3 %i32_3 %i32_3 - -; All functions - %select_v3float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v3float() - %2 = OpLabel - %3 = OpExtInst %v3float_t %1 select %v3float_1 %v3float_2 %v3i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x float> @_Z6selectDv3_fS_Dv3_i(<3 x float> , <3 x float> , <3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i16.spvasm deleted file mode 100644 index 983e824f1..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v3i16 "s_select_v3i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v3i16_t = OpTypeVector %i16_t 3 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v3i16_1 = OpConstantComposite %v3i16_t %i16_1 %i16_1 %i16_1 - %v3i16_2 = OpConstantComposite %v3i16_t %i16_2 %i16_2 %i16_2 - %v3i16_3 = OpConstantComposite %v3i16_t %i16_3 %i16_3 %i16_3 - -; All functions - %s_select_v3i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v3i16() - %2 = OpLabel - %3 = OpExtInst %v3i16_t %1 select %v3i16_1 %v3i16_2 %v3i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i16> @_Z6selectDv3_sS_S_(<3 x i16> , <3 x i16> , <3 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i32.spvasm deleted file mode 100644 index e6244ec44..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v3i32 "s_select_v3i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v3i32_t = OpTypeVector %i32_t 3 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v3i32_1 = OpConstantComposite %v3i32_t %i32_1 %i32_1 %i32_1 - %v3i32_2 = OpConstantComposite %v3i32_t %i32_2 %i32_2 %i32_2 - %v3i32_3 = OpConstantComposite %v3i32_t %i32_3 %i32_3 %i32_3 - -; All functions - %s_select_v3i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v3i32() - %2 = OpLabel - %3 = OpExtInst %v3i32_t %1 select %v3i32_1 %v3i32_2 %v3i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i32> @_Z6selectDv3_iS_S_(<3 x i32> , <3 x i32> , <3 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i64.spvasm deleted file mode 100644 index ac5194762..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v3i64 "s_select_v3i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v3i64_t = OpTypeVector %i64_t 3 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v3i64_1 = OpConstantComposite %v3i64_t %i64_1 %i64_1 %i64_1 - %v3i64_2 = OpConstantComposite %v3i64_t %i64_2 %i64_2 %i64_2 - %v3i64_3 = OpConstantComposite %v3i64_t %i64_3 %i64_3 %i64_3 - -; All functions - %s_select_v3i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v3i64() - %2 = OpLabel - %3 = OpExtInst %v3i64_t %1 select %v3i64_1 %v3i64_2 %v3i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i64> @_Z6selectDv3_lS_S_(<3 x i64> , <3 x i64> , <3 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i8.spvasm deleted file mode 100644 index 665e2534c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v3i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v3i8 "s_select_v3i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v3i8_t = OpTypeVector %i8_t 3 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v3i8_1 = OpConstantComposite %v3i8_t %i8_1 %i8_1 %i8_1 - %v3i8_2 = OpConstantComposite %v3i8_t %i8_2 %i8_2 %i8_2 - %v3i8_3 = OpConstantComposite %v3i8_t %i8_3 %i8_3 %i8_3 - -; All functions - %s_select_v3i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v3i8() - %2 = OpLabel - %3 = OpExtInst %v3i8_t %1 select %v3i8_1 %v3i8_2 %v3i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <3 x i8> @_Z6selectDv3_cS_S_(<3 x i8> , <3 x i8> , <3 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4double.spvasm deleted file mode 100644 index 88c659e7f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4double.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v4double "select_v4double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %v4i64_t = OpTypeVector %i64_t 4 - %v4double_t = OpTypeVector %double_t 4 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - %v4double_1 = OpConstantComposite %v4double_t %double_1 %double_1 %double_1 %double_1 - %v4double_2 = OpConstantComposite %v4double_t %double_2 %double_2 %double_2 %double_2 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %select_v4double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v4double() - %2 = OpLabel - %3 = OpExtInst %v4double_t %1 select %v4double_1 %v4double_2 %v4i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x double> @_Z6selectDv4_dS_Dv4_l(<4 x double> , <4 x double> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4float.spvasm deleted file mode 100644 index e71a6345c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4float.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v4float "select_v4float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %v4i32_t = OpTypeVector %i32_t 4 - %v4float_t = OpTypeVector %float_t 4 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - %v4float_1 = OpConstantComposite %v4float_t %float_1 %float_1 %float_1 %float_1 - %v4float_2 = OpConstantComposite %v4float_t %float_2 %float_2 %float_2 %float_2 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %select_v4float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v4float() - %2 = OpLabel - %3 = OpExtInst %v4float_t %1 select %v4float_1 %v4float_2 %v4i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x float> @_Z6selectDv4_fS_Dv4_i(<4 x float> , <4 x float> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i16.spvasm deleted file mode 100644 index 65b2d0863..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v4i16 "s_select_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v4i16_t = OpTypeVector %i16_t 4 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v4i16_1 = OpConstantComposite %v4i16_t %i16_1 %i16_1 %i16_1 %i16_1 - %v4i16_2 = OpConstantComposite %v4i16_t %i16_2 %i16_2 %i16_2 %i16_2 - %v4i16_3 = OpConstantComposite %v4i16_t %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_select_v4i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 select %v4i16_1 %v4i16_2 %v4i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z6selectDv4_sS_S_(<4 x i16> , <4 x i16> , <4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i32.spvasm deleted file mode 100644 index 0ea886d4e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v4i32 "s_select_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v4i32_t = OpTypeVector %i32_t 4 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v4i32_1 = OpConstantComposite %v4i32_t %i32_1 %i32_1 %i32_1 %i32_1 - %v4i32_2 = OpConstantComposite %v4i32_t %i32_2 %i32_2 %i32_2 %i32_2 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_select_v4i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 select %v4i32_1 %v4i32_2 %v4i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z6selectDv4_iS_S_(<4 x i32> , <4 x i32> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i64.spvasm deleted file mode 100644 index a2182a5c4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v4i64 "s_select_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v4i64_t = OpTypeVector %i64_t 4 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v4i64_1 = OpConstantComposite %v4i64_t %i64_1 %i64_1 %i64_1 %i64_1 - %v4i64_2 = OpConstantComposite %v4i64_t %i64_2 %i64_2 %i64_2 %i64_2 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_select_v4i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 select %v4i64_1 %v4i64_2 %v4i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z6selectDv4_lS_S_(<4 x i64> , <4 x i64> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i8.spvasm deleted file mode 100644 index b7075f3a6..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v4i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v4i8 "s_select_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v4i8_t = OpTypeVector %i8_t 4 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v4i8_1 = OpConstantComposite %v4i8_t %i8_1 %i8_1 %i8_1 %i8_1 - %v4i8_2 = OpConstantComposite %v4i8_t %i8_2 %i8_2 %i8_2 %i8_2 - %v4i8_3 = OpConstantComposite %v4i8_t %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_select_v4i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 select %v4i8_1 %v4i8_2 %v4i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z6selectDv4_cS_S_(<4 x i8> , <4 x i8> , <4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8double.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8double.spvasm deleted file mode 100644 index 6ed384c95..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8double.spvasm +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 -c Float64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Float64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v8double "select_v8double" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %double_t = OpTypeFloat 64 - %v8i64_t = OpTypeVector %i64_t 8 - %v8double_t = OpTypeVector %double_t 8 - %select_fn_t = OpTypeFunction %void_t - %double_1 = OpConstant %double_t 1.0 - %double_2 = OpConstant %double_t 2.0 - %i64_3 = OpConstant %i64_t 3 - %v8double_1 = OpConstantComposite %v8double_t %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 %double_1 - %v8double_2 = OpConstantComposite %v8double_t %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 %double_2 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %select_v8double = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v8double() - %2 = OpLabel - %3 = OpExtInst %v8double_t %1 select %v8double_1 %v8double_2 %v8i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x double> @_Z6selectDv8_dS_Dv8_l(<8 x double> , <8 x double> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8float.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8float.spvasm deleted file mode 100644 index 9958cc67a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8float.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %select_v8float "select_v8float" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %float_t = OpTypeFloat 32 - %v8i32_t = OpTypeVector %i32_t 8 - %v8float_t = OpTypeVector %float_t 8 - %select_fn_t = OpTypeFunction %void_t - %float_1 = OpConstant %float_t 1.0 - %float_2 = OpConstant %float_t 2.0 - %i32_3 = OpConstant %i32_t 3 - %v8float_1 = OpConstantComposite %v8float_t %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 %float_1 - %v8float_2 = OpConstantComposite %v8float_t %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 %float_2 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %select_v8float = OpFunction %void_t None %select_fn_t -; CHECK: define spir_kernel void @select_v8float() - %2 = OpLabel - %3 = OpExtInst %v8float_t %1 select %v8float_1 %v8float_2 %v8i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x float> @_Z6selectDv8_fS_Dv8_i(<8 x float> , <8 x float> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i16.spvasm deleted file mode 100644 index 8688ff1d7..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v8i16 "s_select_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 - %v8i16_t = OpTypeVector %i16_t 8 - %s_select_fn_t = OpTypeFunction %void_t - %i16_1 = OpConstant %i16_t 1 - %i16_2 = OpConstant %i16_t 2 - %i16_3 = OpConstant %i16_t 3 - %v8i16_1 = OpConstantComposite %v8i16_t %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 %i16_1 - %v8i16_2 = OpConstantComposite %v8i16_t %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 %i16_2 - %v8i16_3 = OpConstantComposite %v8i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - -; All functions - %s_select_v8i16 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 select %v8i16_1 %v8i16_2 %v8i16_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z6selectDv8_sS_S_(<8 x i16> , <8 x i16> , <8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i32.spvasm deleted file mode 100644 index 2ea470cd6..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v8i32 "s_select_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 - %v8i32_t = OpTypeVector %i32_t 8 - %s_select_fn_t = OpTypeFunction %void_t - %i32_1 = OpConstant %i32_t 1 - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 - %v8i32_1 = OpConstantComposite %v8i32_t %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 %i32_1 - %v8i32_2 = OpConstantComposite %v8i32_t %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 %i32_2 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - -; All functions - %s_select_v8i32 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 select %v8i32_1 %v8i32_2 %v8i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z6selectDv8_iS_S_(<8 x i32> , <8 x i32> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i64.spvasm deleted file mode 100644 index 2b462210d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v8i64 "s_select_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 - %v8i64_t = OpTypeVector %i64_t 8 - %s_select_fn_t = OpTypeFunction %void_t - %i64_1 = OpConstant %i64_t 1 - %i64_2 = OpConstant %i64_t 2 - %i64_3 = OpConstant %i64_t 3 - %v8i64_1 = OpConstantComposite %v8i64_t %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 %i64_1 - %v8i64_2 = OpConstantComposite %v8i64_t %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 %i64_2 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - -; All functions - %s_select_v8i64 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 select %v8i64_1 %v8i64_2 %v8i64_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z6selectDv8_lS_S_(<8 x i64> , <8 x i64> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i8.spvasm deleted file mode 100644 index 4c6f6644a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_select_v8i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_select_v8i8 "s_select_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 - %v8i8_t = OpTypeVector %i8_t 8 - %s_select_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 - %i8_3 = OpConstant %i8_t 3 - %v8i8_1 = OpConstantComposite %v8i8_t %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 %i8_1 - %v8i8_2 = OpConstantComposite %v8i8_t %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 %i8_2 - %v8i8_3 = OpConstantComposite %v8i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - -; All functions - %s_select_v8i8 = OpFunction %void_t None %s_select_fn_t -; CHECK: define spir_kernel void @s_select_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 select %v8i8_1 %v8i8_2 %v8i8_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z6selectDv8_cS_S_(<8 x i8> , <8 x i8> , <8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i16.spvasm deleted file mode 100644 index a5bbee504..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i16.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v16i16 "s_shuffle2_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v16ui16_t = OpTypeVector %ui16_t 16 - %v16i16_t = OpTypeVector %i16_t 16 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %i16_4 = OpConstant %i16_t 4 - %ui16_5 = OpConstant %ui16_t 5 - %v16i16_3 = OpConstantComposite %v16i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - %v16i16_4 = OpConstantComposite %v16i16_t %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 - %v16ui16_5 = OpConstantComposite %v16ui16_t %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 - -; All functions - %s_shuffle2_v16i16 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 shuffle2 %v16i16_3 %v16i16_4 %v16ui16_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z8shuffle2Dv16_sS_Dv16_t(<16 x i16> , <16 x i16> , <16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i32.spvasm deleted file mode 100644 index c79854d18..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i32.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v16i32 "s_shuffle2_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v16ui32_t = OpTypeVector %ui32_t 16 - %v16i32_t = OpTypeVector %i32_t 16 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %i32_4 = OpConstant %i32_t 4 - %ui32_5 = OpConstant %ui32_t 5 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - %v16i32_4 = OpConstantComposite %v16i32_t %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 - %v16ui32_5 = OpConstantComposite %v16ui32_t %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 - -; All functions - %s_shuffle2_v16i32 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 shuffle2 %v16i32_3 %v16i32_4 %v16ui32_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z8shuffle2Dv16_iS_Dv16_j(<16 x i32> , <16 x i32> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i64.spvasm deleted file mode 100644 index 67ba39a5d..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i64.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v16i64 "s_shuffle2_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v16ui64_t = OpTypeVector %ui64_t 16 - %v16i64_t = OpTypeVector %i64_t 16 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %i64_4 = OpConstant %i64_t 4 - %ui64_5 = OpConstant %ui64_t 5 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - %v16i64_4 = OpConstantComposite %v16i64_t %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 - %v16ui64_5 = OpConstantComposite %v16ui64_t %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 - -; All functions - %s_shuffle2_v16i64 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 shuffle2 %v16i64_3 %v16i64_4 %v16ui64_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z8shuffle2Dv16_lS_Dv16_m(<16 x i64> , <16 x i64> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i8.spvasm deleted file mode 100644 index 7e932dfcd..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v16i8.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v16i8 "s_shuffle2_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v16ui8_t = OpTypeVector %ui8_t 16 - %v16i8_t = OpTypeVector %i8_t 16 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %i8_4 = OpConstant %i8_t 4 - %ui8_5 = OpConstant %ui8_t 5 - %v16i8_3 = OpConstantComposite %v16i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - %v16i8_4 = OpConstantComposite %v16i8_t %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 - %v16ui8_5 = OpConstantComposite %v16ui8_t %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 - -; All functions - %s_shuffle2_v16i8 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 shuffle2 %v16i8_3 %v16i8_4 %v16ui8_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z8shuffle2Dv16_cS_Dv16_h(<16 x i8> , <16 x i8> , <16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i16.spvasm deleted file mode 100644 index dc05c96f2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i16.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v2i16 "s_shuffle2_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v2ui16_t = OpTypeVector %ui16_t 2 - %v2i16_t = OpTypeVector %i16_t 2 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %i16_4 = OpConstant %i16_t 4 - %ui16_5 = OpConstant %ui16_t 5 - %v2i16_3 = OpConstantComposite %v2i16_t %i16_3 %i16_3 - %v2i16_4 = OpConstantComposite %v2i16_t %i16_4 %i16_4 - %v2ui16_5 = OpConstantComposite %v2ui16_t %ui16_5 %ui16_5 - -; All functions - %s_shuffle2_v2i16 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 shuffle2 %v2i16_3 %v2i16_4 %v2ui16_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z8shuffle2Dv2_sS_Dv2_t(<2 x i16> , <2 x i16> , <2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i32.spvasm deleted file mode 100644 index 0aa8c5a0b..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i32.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v2i32 "s_shuffle2_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v2ui32_t = OpTypeVector %ui32_t 2 - %v2i32_t = OpTypeVector %i32_t 2 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %i32_4 = OpConstant %i32_t 4 - %ui32_5 = OpConstant %ui32_t 5 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - %v2i32_4 = OpConstantComposite %v2i32_t %i32_4 %i32_4 - %v2ui32_5 = OpConstantComposite %v2ui32_t %ui32_5 %ui32_5 - -; All functions - %s_shuffle2_v2i32 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 shuffle2 %v2i32_3 %v2i32_4 %v2ui32_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z8shuffle2Dv2_iS_Dv2_j(<2 x i32> , <2 x i32> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i64.spvasm deleted file mode 100644 index 511f60d9a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i64.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v2i64 "s_shuffle2_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v2ui64_t = OpTypeVector %ui64_t 2 - %v2i64_t = OpTypeVector %i64_t 2 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %i64_4 = OpConstant %i64_t 4 - %ui64_5 = OpConstant %ui64_t 5 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - %v2i64_4 = OpConstantComposite %v2i64_t %i64_4 %i64_4 - %v2ui64_5 = OpConstantComposite %v2ui64_t %ui64_5 %ui64_5 - -; All functions - %s_shuffle2_v2i64 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 shuffle2 %v2i64_3 %v2i64_4 %v2ui64_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z8shuffle2Dv2_lS_Dv2_m(<2 x i64> , <2 x i64> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i8.spvasm deleted file mode 100644 index cccdeeea8..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v2i8.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v2i8 "s_shuffle2_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v2ui8_t = OpTypeVector %ui8_t 2 - %v2i8_t = OpTypeVector %i8_t 2 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %i8_4 = OpConstant %i8_t 4 - %ui8_5 = OpConstant %ui8_t 5 - %v2i8_3 = OpConstantComposite %v2i8_t %i8_3 %i8_3 - %v2i8_4 = OpConstantComposite %v2i8_t %i8_4 %i8_4 - %v2ui8_5 = OpConstantComposite %v2ui8_t %ui8_5 %ui8_5 - -; All functions - %s_shuffle2_v2i8 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 shuffle2 %v2i8_3 %v2i8_4 %v2ui8_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z8shuffle2Dv2_cS_Dv2_h(<2 x i8> , <2 x i8> , <2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i16.spvasm deleted file mode 100644 index dc832ca48..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i16.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v4i16 "s_shuffle2_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v4ui16_t = OpTypeVector %ui16_t 4 - %v4i16_t = OpTypeVector %i16_t 4 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %i16_4 = OpConstant %i16_t 4 - %ui16_5 = OpConstant %ui16_t 5 - %v4i16_3 = OpConstantComposite %v4i16_t %i16_3 %i16_3 %i16_3 %i16_3 - %v4i16_4 = OpConstantComposite %v4i16_t %i16_4 %i16_4 %i16_4 %i16_4 - %v4ui16_5 = OpConstantComposite %v4ui16_t %ui16_5 %ui16_5 %ui16_5 %ui16_5 - -; All functions - %s_shuffle2_v4i16 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 shuffle2 %v4i16_3 %v4i16_4 %v4ui16_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z8shuffle2Dv4_sS_Dv4_t(<4 x i16> , <4 x i16> , <4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i32.spvasm deleted file mode 100644 index 5915cfc26..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i32.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v4i32 "s_shuffle2_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v4ui32_t = OpTypeVector %ui32_t 4 - %v4i32_t = OpTypeVector %i32_t 4 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %i32_4 = OpConstant %i32_t 4 - %ui32_5 = OpConstant %ui32_t 5 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - %v4i32_4 = OpConstantComposite %v4i32_t %i32_4 %i32_4 %i32_4 %i32_4 - %v4ui32_5 = OpConstantComposite %v4ui32_t %ui32_5 %ui32_5 %ui32_5 %ui32_5 - -; All functions - %s_shuffle2_v4i32 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 shuffle2 %v4i32_3 %v4i32_4 %v4ui32_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z8shuffle2Dv4_iS_Dv4_j(<4 x i32> , <4 x i32> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i64.spvasm deleted file mode 100644 index fe3dd1f6f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i64.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v4i64 "s_shuffle2_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v4ui64_t = OpTypeVector %ui64_t 4 - %v4i64_t = OpTypeVector %i64_t 4 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %i64_4 = OpConstant %i64_t 4 - %ui64_5 = OpConstant %ui64_t 5 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - %v4i64_4 = OpConstantComposite %v4i64_t %i64_4 %i64_4 %i64_4 %i64_4 - %v4ui64_5 = OpConstantComposite %v4ui64_t %ui64_5 %ui64_5 %ui64_5 %ui64_5 - -; All functions - %s_shuffle2_v4i64 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 shuffle2 %v4i64_3 %v4i64_4 %v4ui64_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z8shuffle2Dv4_lS_Dv4_m(<4 x i64> , <4 x i64> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i8.spvasm deleted file mode 100644 index c0faf68d5..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v4i8.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v4i8 "s_shuffle2_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v4ui8_t = OpTypeVector %ui8_t 4 - %v4i8_t = OpTypeVector %i8_t 4 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %i8_4 = OpConstant %i8_t 4 - %ui8_5 = OpConstant %ui8_t 5 - %v4i8_3 = OpConstantComposite %v4i8_t %i8_3 %i8_3 %i8_3 %i8_3 - %v4i8_4 = OpConstantComposite %v4i8_t %i8_4 %i8_4 %i8_4 %i8_4 - %v4ui8_5 = OpConstantComposite %v4ui8_t %ui8_5 %ui8_5 %ui8_5 %ui8_5 - -; All functions - %s_shuffle2_v4i8 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 shuffle2 %v4i8_3 %v4i8_4 %v4ui8_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z8shuffle2Dv4_cS_Dv4_h(<4 x i8> , <4 x i8> , <4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i16.spvasm deleted file mode 100644 index 9ab54fc9a..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i16.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v8i16 "s_shuffle2_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v8ui16_t = OpTypeVector %ui16_t 8 - %v8i16_t = OpTypeVector %i16_t 8 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %i16_4 = OpConstant %i16_t 4 - %ui16_5 = OpConstant %ui16_t 5 - %v8i16_3 = OpConstantComposite %v8i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - %v8i16_4 = OpConstantComposite %v8i16_t %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 %i16_4 - %v8ui16_5 = OpConstantComposite %v8ui16_t %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 %ui16_5 - -; All functions - %s_shuffle2_v8i16 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 shuffle2 %v8i16_3 %v8i16_4 %v8ui16_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z8shuffle2Dv8_sS_Dv8_t(<8 x i16> , <8 x i16> , <8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i32.spvasm deleted file mode 100644 index 15f69154f..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i32.spvasm +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v8i32 "s_shuffle2_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v8ui32_t = OpTypeVector %ui32_t 8 - %v8i32_t = OpTypeVector %i32_t 8 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %i32_4 = OpConstant %i32_t 4 - %ui32_5 = OpConstant %ui32_t 5 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - %v8i32_4 = OpConstantComposite %v8i32_t %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 %i32_4 - %v8ui32_5 = OpConstantComposite %v8ui32_t %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 %ui32_5 - -; All functions - %s_shuffle2_v8i32 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 shuffle2 %v8i32_3 %v8i32_4 %v8ui32_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z8shuffle2Dv8_iS_Dv8_j(<8 x i32> , <8 x i32> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i64.spvasm deleted file mode 100644 index f1df71b86..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i64.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v8i64 "s_shuffle2_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v8ui64_t = OpTypeVector %ui64_t 8 - %v8i64_t = OpTypeVector %i64_t 8 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %i64_4 = OpConstant %i64_t 4 - %ui64_5 = OpConstant %ui64_t 5 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - %v8i64_4 = OpConstantComposite %v8i64_t %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 %i64_4 - %v8ui64_5 = OpConstantComposite %v8ui64_t %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 %ui64_5 - -; All functions - %s_shuffle2_v8i64 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 shuffle2 %v8i64_3 %v8i64_4 %v8ui64_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z8shuffle2Dv8_lS_Dv8_m(<8 x i64> , <8 x i64> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i8.spvasm deleted file mode 100644 index 6aed9dba6..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle2_v8i8.spvasm +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle2_v8i8 "s_shuffle2_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v8ui8_t = OpTypeVector %ui8_t 8 - %v8i8_t = OpTypeVector %i8_t 8 - %s_shuffle2_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %i8_4 = OpConstant %i8_t 4 - %ui8_5 = OpConstant %ui8_t 5 - %v8i8_3 = OpConstantComposite %v8i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - %v8i8_4 = OpConstantComposite %v8i8_t %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 %i8_4 - %v8ui8_5 = OpConstantComposite %v8ui8_t %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 %ui8_5 - -; All functions - %s_shuffle2_v8i8 = OpFunction %void_t None %s_shuffle2_fn_t -; CHECK: define spir_kernel void @s_shuffle2_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 shuffle2 %v8i8_3 %v8i8_4 %v8ui8_5 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z8shuffle2Dv8_cS_Dv8_h(<8 x i8> , <8 x i8> , <8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i16.spvasm deleted file mode 100644 index 1ba23f7c4..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v16i16 "s_shuffle_v16i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v16ui16_t = OpTypeVector %ui16_t 16 - %v16i16_t = OpTypeVector %i16_t 16 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %ui16_4 = OpConstant %ui16_t 4 - %v16i16_3 = OpConstantComposite %v16i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - %v16ui16_4 = OpConstantComposite %v16ui16_t %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 - -; All functions - %s_shuffle_v16i16 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v16i16() - %2 = OpLabel - %3 = OpExtInst %v16i16_t %1 shuffle %v16i16_3 %v16ui16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i16> @_Z7shuffleDv16_sDv16_t(<16 x i16> , <16 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i32.spvasm deleted file mode 100644 index 3e9fa0b52..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v16i32 "s_shuffle_v16i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v16ui32_t = OpTypeVector %ui32_t 16 - %v16i32_t = OpTypeVector %i32_t 16 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %ui32_4 = OpConstant %ui32_t 4 - %v16i32_3 = OpConstantComposite %v16i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - %v16ui32_4 = OpConstantComposite %v16ui32_t %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 - -; All functions - %s_shuffle_v16i32 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v16i32() - %2 = OpLabel - %3 = OpExtInst %v16i32_t %1 shuffle %v16i32_3 %v16ui32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i32> @_Z7shuffleDv16_iDv16_j(<16 x i32> , <16 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i64.spvasm deleted file mode 100644 index de36ab4b1..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v16i64 "s_shuffle_v16i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v16ui64_t = OpTypeVector %ui64_t 16 - %v16i64_t = OpTypeVector %i64_t 16 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %ui64_4 = OpConstant %ui64_t 4 - %v16i64_3 = OpConstantComposite %v16i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - %v16ui64_4 = OpConstantComposite %v16ui64_t %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 - -; All functions - %s_shuffle_v16i64 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v16i64() - %2 = OpLabel - %3 = OpExtInst %v16i64_t %1 shuffle %v16i64_3 %v16ui64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i64> @_Z7shuffleDv16_lDv16_m(<16 x i64> , <16 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i8.spvasm deleted file mode 100644 index b85f80490..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v16i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v16i8 "s_shuffle_v16i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v16ui8_t = OpTypeVector %ui8_t 16 - %v16i8_t = OpTypeVector %i8_t 16 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %ui8_4 = OpConstant %ui8_t 4 - %v16i8_3 = OpConstantComposite %v16i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - %v16ui8_4 = OpConstantComposite %v16ui8_t %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 - -; All functions - %s_shuffle_v16i8 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v16i8() - %2 = OpLabel - %3 = OpExtInst %v16i8_t %1 shuffle %v16i8_3 %v16ui8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <16 x i8> @_Z7shuffleDv16_cDv16_h(<16 x i8> , <16 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i16.spvasm deleted file mode 100644 index 6dc9517f2..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v2i16 "s_shuffle_v2i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v2ui16_t = OpTypeVector %ui16_t 2 - %v2i16_t = OpTypeVector %i16_t 2 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %ui16_4 = OpConstant %ui16_t 4 - %v2i16_3 = OpConstantComposite %v2i16_t %i16_3 %i16_3 - %v2ui16_4 = OpConstantComposite %v2ui16_t %ui16_4 %ui16_4 - -; All functions - %s_shuffle_v2i16 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v2i16() - %2 = OpLabel - %3 = OpExtInst %v2i16_t %1 shuffle %v2i16_3 %v2ui16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i16> @_Z7shuffleDv2_sDv2_t(<2 x i16> , <2 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i32.spvasm deleted file mode 100644 index 74749afd0..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v2i32 "s_shuffle_v2i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v2ui32_t = OpTypeVector %ui32_t 2 - %v2i32_t = OpTypeVector %i32_t 2 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %ui32_4 = OpConstant %ui32_t 4 - %v2i32_3 = OpConstantComposite %v2i32_t %i32_3 %i32_3 - %v2ui32_4 = OpConstantComposite %v2ui32_t %ui32_4 %ui32_4 - -; All functions - %s_shuffle_v2i32 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v2i32() - %2 = OpLabel - %3 = OpExtInst %v2i32_t %1 shuffle %v2i32_3 %v2ui32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i32> @_Z7shuffleDv2_iDv2_j(<2 x i32> , <2 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i64.spvasm deleted file mode 100644 index b34f3b8e3..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v2i64 "s_shuffle_v2i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v2ui64_t = OpTypeVector %ui64_t 2 - %v2i64_t = OpTypeVector %i64_t 2 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %ui64_4 = OpConstant %ui64_t 4 - %v2i64_3 = OpConstantComposite %v2i64_t %i64_3 %i64_3 - %v2ui64_4 = OpConstantComposite %v2ui64_t %ui64_4 %ui64_4 - -; All functions - %s_shuffle_v2i64 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v2i64() - %2 = OpLabel - %3 = OpExtInst %v2i64_t %1 shuffle %v2i64_3 %v2ui64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i64> @_Z7shuffleDv2_lDv2_m(<2 x i64> , <2 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i8.spvasm deleted file mode 100644 index a7bacdf23..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v2i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v2i8 "s_shuffle_v2i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v2ui8_t = OpTypeVector %ui8_t 2 - %v2i8_t = OpTypeVector %i8_t 2 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %ui8_4 = OpConstant %ui8_t 4 - %v2i8_3 = OpConstantComposite %v2i8_t %i8_3 %i8_3 - %v2ui8_4 = OpConstantComposite %v2ui8_t %ui8_4 %ui8_4 - -; All functions - %s_shuffle_v2i8 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v2i8() - %2 = OpLabel - %3 = OpExtInst %v2i8_t %1 shuffle %v2i8_3 %v2ui8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <2 x i8> @_Z7shuffleDv2_cDv2_h(<2 x i8> , <2 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i16.spvasm deleted file mode 100644 index a74a2593e..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i16.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v4i16 "s_shuffle_v4i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v4ui16_t = OpTypeVector %ui16_t 4 - %v4i16_t = OpTypeVector %i16_t 4 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %ui16_4 = OpConstant %ui16_t 4 - %v4i16_3 = OpConstantComposite %v4i16_t %i16_3 %i16_3 %i16_3 %i16_3 - %v4ui16_4 = OpConstantComposite %v4ui16_t %ui16_4 %ui16_4 %ui16_4 %ui16_4 - -; All functions - %s_shuffle_v4i16 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v4i16() - %2 = OpLabel - %3 = OpExtInst %v4i16_t %1 shuffle %v4i16_3 %v4ui16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i16> @_Z7shuffleDv4_sDv4_t(<4 x i16> , <4 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i32.spvasm deleted file mode 100644 index db162bd83..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i32.spvasm +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v4i32 "s_shuffle_v4i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v4ui32_t = OpTypeVector %ui32_t 4 - %v4i32_t = OpTypeVector %i32_t 4 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %ui32_4 = OpConstant %ui32_t 4 - %v4i32_3 = OpConstantComposite %v4i32_t %i32_3 %i32_3 %i32_3 %i32_3 - %v4ui32_4 = OpConstantComposite %v4ui32_t %ui32_4 %ui32_4 %ui32_4 %ui32_4 - -; All functions - %s_shuffle_v4i32 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v4i32() - %2 = OpLabel - %3 = OpExtInst %v4i32_t %1 shuffle %v4i32_3 %v4ui32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i32> @_Z7shuffleDv4_iDv4_j(<4 x i32> , <4 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i64.spvasm deleted file mode 100644 index 430779af0..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i64.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v4i64 "s_shuffle_v4i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v4ui64_t = OpTypeVector %ui64_t 4 - %v4i64_t = OpTypeVector %i64_t 4 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %ui64_4 = OpConstant %ui64_t 4 - %v4i64_3 = OpConstantComposite %v4i64_t %i64_3 %i64_3 %i64_3 %i64_3 - %v4ui64_4 = OpConstantComposite %v4ui64_t %ui64_4 %ui64_4 %ui64_4 %ui64_4 - -; All functions - %s_shuffle_v4i64 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v4i64() - %2 = OpLabel - %3 = OpExtInst %v4i64_t %1 shuffle %v4i64_3 %v4ui64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i64> @_Z7shuffleDv4_lDv4_m(<4 x i64> , <4 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i8.spvasm deleted file mode 100644 index e6b9ac15c..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v4i8.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v4i8 "s_shuffle_v4i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v4ui8_t = OpTypeVector %ui8_t 4 - %v4i8_t = OpTypeVector %i8_t 4 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %ui8_4 = OpConstant %ui8_t 4 - %v4i8_3 = OpConstantComposite %v4i8_t %i8_3 %i8_3 %i8_3 %i8_3 - %v4ui8_4 = OpConstantComposite %v4ui8_t %ui8_4 %ui8_4 %ui8_4 %ui8_4 - -; All functions - %s_shuffle_v4i8 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v4i8() - %2 = OpLabel - %3 = OpExtInst %v4i8_t %1 shuffle %v4i8_3 %v4ui8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <4 x i8> @_Z7shuffleDv4_cDv4_h(<4 x i8> , <4 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i16.spvasm deleted file mode 100644 index 2b5bb2501..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i16.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int16 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v8i16 "s_shuffle_v8i16" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui16_t = OpTypeInt 16 0 - %i16_t = OpTypeInt 16 1 - %v8ui16_t = OpTypeVector %ui16_t 8 - %v8i16_t = OpTypeVector %i16_t 8 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i16_3 = OpConstant %i16_t 3 - %ui16_4 = OpConstant %ui16_t 4 - %v8i16_3 = OpConstantComposite %v8i16_t %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 %i16_3 - %v8ui16_4 = OpConstantComposite %v8ui16_t %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 %ui16_4 - -; All functions - %s_shuffle_v8i16 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v8i16() - %2 = OpLabel - %3 = OpExtInst %v8i16_t %1 shuffle %v8i16_3 %v8ui16_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i16> @_Z7shuffleDv8_sDv8_t(<8 x i16> , <8 x i16> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i32.spvasm deleted file mode 100644 index 843b2b555..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i32.spvasm +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v8i32 "s_shuffle_v8i32" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 - %v8ui32_t = OpTypeVector %ui32_t 8 - %v8i32_t = OpTypeVector %i32_t 8 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %i32_t 3 - %ui32_4 = OpConstant %ui32_t 4 - %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - %v8ui32_4 = OpConstantComposite %v8ui32_t %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 - -; All functions - %s_shuffle_v8i32 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v8i32() - %2 = OpLabel - %3 = OpExtInst %v8i32_t %1 shuffle %v8i32_3 %v8ui32_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i32> @_Z7shuffleDv8_iDv8_j(<8 x i32> , <8 x i32> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i64.spvasm deleted file mode 100644 index 267cf7e35..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i64.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int64 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v8i64 "s_shuffle_v8i64" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui64_t = OpTypeInt 64 0 - %i64_t = OpTypeInt 64 1 - %v8ui64_t = OpTypeVector %ui64_t 8 - %v8i64_t = OpTypeVector %i64_t 8 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i64_3 = OpConstant %i64_t 3 - %ui64_4 = OpConstant %ui64_t 4 - %v8i64_3 = OpConstantComposite %v8i64_t %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 %i64_3 - %v8ui64_4 = OpConstantComposite %v8ui64_t %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 %ui64_4 - -; All functions - %s_shuffle_v8i64 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v8i64() - %2 = OpLabel - %3 = OpExtInst %v8i64_t %1 shuffle %v8i64_3 %v8ui64_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i64> @_Z7shuffleDv8_lDv8_m(<8 x i64> , <8 x i64> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i8.spvasm deleted file mode 100644 index e6e7369fa..000000000 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_shuffle_v8i8.spvasm +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) Codeplay Software Limited -; -; Licensed under the Apache License, Version 2.0 (the "License") with LLVM -; Exceptions; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -; License for the specific language governing permissions and limitations -; under the License. -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -; RUN: %if online-spirv-as %{ spirv-as --target-env %spv_tgt_env -o %spv_file_s %s %} -; RUN: spirv-ll-tool -a OpenCL -b 64 %spv_file_s | FileCheck %s - OpCapability Kernel - OpCapability Addresses - OpCapability Int8 - OpCapability Vector16 - %1 = OpExtInstImport "OpenCL.std" - OpMemoryModel Physical64 OpenCL - OpEntryPoint Kernel %s_shuffle_v8i8 "s_shuffle_v8i8" - OpSource OpenCL_C 102000 - -; All types, variables and constants - %void_t = OpTypeVoid - %ui8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 - %v8ui8_t = OpTypeVector %ui8_t 8 - %v8i8_t = OpTypeVector %i8_t 8 - %s_shuffle_fn_t = OpTypeFunction %void_t - %i8_3 = OpConstant %i8_t 3 - %ui8_4 = OpConstant %ui8_t 4 - %v8i8_3 = OpConstantComposite %v8i8_t %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 %i8_3 - %v8ui8_4 = OpConstantComposite %v8ui8_t %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 %ui8_4 - -; All functions - %s_shuffle_v8i8 = OpFunction %void_t None %s_shuffle_fn_t -; CHECK: define spir_kernel void @s_shuffle_v8i8() - %2 = OpLabel - %3 = OpExtInst %v8i8_t %1 shuffle %v8i8_3 %v8ui8_4 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func <8 x i8> @_Z7shuffleDv8_cDv8_h(<8 x i8> , <8 x i8> ) - OpReturn -; CHECK: ret void - OpFunctionEnd -; CHECK: } diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i16.spvasm index d8a59a9fd..56539958a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 %i16_4 = OpConstant %i16_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i32.spvasm index 5048a7c67..8fd0957ee 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 %i32_4 = OpConstant %i32_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i64.spvasm index de085bdbd..1e221314c 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 %i64_4 = OpConstant %i64_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i8.spvasm index 0234df648..0690c46ab 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 %i8_4 = OpConstant %i8_t 4 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i16.spvasm index c4565f9fe..5ba649295 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v16i16_t = OpTypeVector %i16_t 16 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i32.spvasm index d118657ee..7ed5445ca 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v16i32_t = OpTypeVector %i32_t 16 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i64.spvasm index 39640c963..02fc2bbe4 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v16i64_t = OpTypeVector %i64_t 16 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i8.spvasm index b26f11ad7..c067a709a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v16i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v16i8_t = OpTypeVector %i8_t 16 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i16.spvasm index f7ac02b52..cbefd9eda 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v2i16_t = OpTypeVector %i16_t 2 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i32.spvasm index 3c0858d1d..00c825b1b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v2i32_t = OpTypeVector %i32_t 2 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i64.spvasm index 182f76f37..b6493771b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v2i64_t = OpTypeVector %i64_t 2 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i8.spvasm index f069bb414..d27e7d9f9 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v2i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v2i8_t = OpTypeVector %i8_t 2 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i16.spvasm index dd44315a4..03925e5df 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v3i16_t = OpTypeVector %i16_t 3 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i32.spvasm index ca9f7c3de..6cb2b932b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v3i32_t = OpTypeVector %i32_t 3 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i64.spvasm index 6557d3b24..4497be8bf 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v3i64_t = OpTypeVector %i64_t 3 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i8.spvasm index d7d3ecbfb..f5f52bead 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v3i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v3i8_t = OpTypeVector %i8_t 3 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i16.spvasm index 8ad4294af..740897ac2 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i16.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v4i16_t = OpTypeVector %i16_t 4 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i32.spvasm index 7b7d06332..b518085c3 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i32.spvasm @@ -25,7 +25,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v4i32_t = OpTypeVector %i32_t 4 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i64.spvasm index 8e1e0e988..6116b7aea 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i64.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v4i64_t = OpTypeVector %i64_t 4 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i8.spvasm index 4519d2b3b..64f7a987b 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v4i8.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v4i8_t = OpTypeVector %i8_t 4 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i16.spvasm index b558dad99..02f4e874a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i16.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i16_t = OpTypeInt 16 1 + %i16_t = OpTypeInt 16 0 %v8i16_t = OpTypeVector %i16_t 8 %s_sub_sat_fn_t = OpTypeFunction %void_t %i16_3 = OpConstant %i16_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i32.spvasm index c8dc36235..0bd48b92a 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i32.spvasm @@ -26,7 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i32_t = OpTypeInt 32 1 + %i32_t = OpTypeInt 32 0 %v8i32_t = OpTypeVector %i32_t 8 %s_sub_sat_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %i32_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i64.spvasm index ef35dee0a..68b037444 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i64.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i64_t = OpTypeInt 64 1 + %i64_t = OpTypeInt 64 0 %v8i64_t = OpTypeVector %i64_t 8 %s_sub_sat_fn_t = OpTypeFunction %void_t %i64_3 = OpConstant %i64_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i8.spvasm index a5d51ac93..7ad372f47 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_sub_sat_v8i8.spvasm @@ -27,7 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid - %i8_t = OpTypeInt 8 1 + %i8_t = OpTypeInt 8 0 %v8i8_t = OpTypeVector %i8_t 8 %s_sub_sat_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %i8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_i64.spvasm index f9c74a1b3..e707ab243 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_i64.spvasm @@ -26,17 +26,17 @@ ; All types, variables and constants %void_t = OpTypeVoid - %ui32_t = OpTypeInt 32 0 - %i64_t = OpTypeInt 64 1 + %u32_t = OpTypeInt 32 0 + %u64_t = OpTypeInt 64 0 %s_upsample_fn_t = OpTypeFunction %void_t - %i32_3 = OpConstant %ui32_t 3 - %ui32_4 = OpConstant %ui32_t 4 + %u32_3 = OpConstant %u32_t 3 + %u32_4 = OpConstant %u32_t 4 ; All functions %s_upsample_i64 = OpFunction %void_t None %s_upsample_fn_t ; CHECK: define spir_kernel void @s_upsample_i64() %2 = OpLabel - %3 = OpExtInst %i64_t %1 s_upsample %i32_3 %ui32_4 + %3 = OpExtInst %u64_t %1 s_upsample %u32_3 %u32_4 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i64 @_Z8upsampleij(i32 3, i32 4) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v16i16.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v16i16.spvasm index 767619f2e..4bdd3bbd8 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v16i16.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v16i16.spvasm @@ -31,7 +31,6 @@ %ui8_t = OpTypeInt 8 0 %i16_t = OpTypeInt 16 0 %v16ui8_t = OpTypeVector %ui8_t 16 - %v16i8_t = OpTypeVector %ui8_t 16 %v16i16_t = OpTypeVector %i16_t 16 %s_upsample_fn_t = OpTypeFunction %void_t %i8_3 = OpConstant %ui8_t 3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v8i64.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v8i64.spvasm index 2baae7c29..c61647f98 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v8i64.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_s_upsample_v8i64.spvasm @@ -29,14 +29,13 @@ %void_t = OpTypeVoid %ui32_t = OpTypeInt 32 0 %ui64_t = OpTypeInt 64 0 - %v8ui32_t = OpTypeVector %ui32_t 8 %v8i32_t = OpTypeVector %ui32_t 8 %v8i64_t = OpTypeVector %ui64_t 8 %s_upsample_fn_t = OpTypeFunction %void_t %i32_3 = OpConstant %ui32_t 3 %ui32_4 = OpConstant %ui32_t 4 %v8i32_3 = OpConstantComposite %v8i32_t %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 %i32_3 - %v8ui32_4 = OpConstantComposite %v8ui32_t %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 + %v8ui32_4 = OpConstantComposite %v8i32_t %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 %ui32_4 ; All functions %s_upsample_v8i64 = OpFunction %void_t None %s_upsample_fn_t diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_diff_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_diff_i32.spvasm index 434d3c4c6..198109a05 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_diff_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_diff_i32.spvasm @@ -26,10 +26,7 @@ ; All types, variables and constants %void_t = OpTypeVoid %u32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %u_abs_diff_fn_t = OpTypeFunction %void_t - %i32_2 = OpConstant %i32_t 2 - %i32_3 = OpConstant %i32_t 3 %u32_2 = OpConstant %u32_t 2 %u32_3 = OpConstant %u32_t 3 @@ -37,9 +34,7 @@ %u_abs_diff_i32 = OpFunction %void_t None %u_abs_diff_fn_t ; CHECK: define spir_kernel void @u_abs_diff_i32() %2 = OpLabel - %3 = OpExtInst %u32_t %1 u_abs_diff %i32_2 %i32_3 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z8abs_diffjj(i32 2, i32 3) - %4 = OpExtInst %u32_t %1 u_abs_diff %u32_2 %u32_3 + %3 = OpExtInst %u32_t %1 u_abs_diff %u32_2 %u32_3 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func i32 @_Z8abs_diffjj(i32 2, i32 3) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_i32.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_i32.spvasm index 332e2160b..0e51090e0 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_i32.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_abs_i32.spvasm @@ -26,7 +26,6 @@ ; All types, variables and constants %void_t = OpTypeVoid %u32_t = OpTypeInt 32 0 - %i32_t = OpTypeInt 32 1 %u_abs_fn_t = OpTypeFunction %void_t %u32_2 = OpConstant %u32_t 2 %i32_2 = OpConstant %u32_t 2 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_max_i8.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_max_i8.spvasm index f0e03fa09..75d6bbe82 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_max_i8.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_opencl_u_max_i8.spvasm @@ -27,10 +27,7 @@ ; All types, variables and constants %void_t = OpTypeVoid %u8_t = OpTypeInt 8 0 - %i8_t = OpTypeInt 8 1 %u_max_fn_t = OpTypeFunction %void_t - %i8_1 = OpConstant %i8_t 1 - %i8_2 = OpConstant %i8_t 2 %u8_1 = OpConstant %u8_t 1 %u8_2 = OpConstant %u8_t 2 @@ -38,9 +35,7 @@ %u_max_i8 = OpFunction %void_t None %u_max_fn_t ; CHECK: define spir_kernel void @u_max_i8() %2 = OpLabel - %3 = OpExtInst %i8_t %1 u_max %i8_1 %i8_2 -; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z3maxhh(i8 zeroext 1, i8 zeroext 2) - %4 = OpExtInst %u8_t %1 u_max %u8_1 %u8_2 + %3 = OpExtInst %u8_t %1 u_max %u8_1 %u8_2 ; CHECK: {{%[a-zA-Z0-9]+}} = call spir_func zeroext i8 @_Z3maxhh(i8 zeroext 1, i8 zeroext 2) OpReturn ; CHECK: ret void diff --git a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_array.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_array.spvasm index 38c2b8b8f..b2be6c1ba 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_array.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_array.spvasm @@ -36,13 +36,12 @@ %void = OpTypeVoid %3 = OpTypeFunction %void %uint = OpTypeInt 32 0 - %idx_type = OpTypeInt 32 0 - %8 = OpConstant %idx_type 4 + %8 = OpConstant %uint 4 %arr_uint = OpTypeArray %uint %8 %test_block = OpTypeStruct %arr_uint %_ptr_Uniform_test_block = OpTypePointer Uniform %test_block %_ = OpVariable %_ptr_Uniform_test_block Uniform - %13 = OpConstant %idx_type 0 + %13 = OpConstant %uint 0 %14 = OpSpecConstant %uint 42 %15 = OpSpecConstantComposite %arr_uint %14 %14 %14 %14 ; testing this %ptr_arr_uint = OpTypePointer Uniform %arr_uint diff --git a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_struct.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_struct.spvasm index 7c2138ee0..7adc1b501 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_struct.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_struct.spvasm @@ -39,12 +39,11 @@ %void = OpTypeVoid %3 = OpTypeFunction %void %uint = OpTypeInt 32 0 - %idx_type = OpTypeInt 32 0 %Foo = OpTypeStruct %uint %test_block = OpTypeStruct %Foo %_ptr_Uniform_test_block = OpTypePointer Uniform %test_block %_ = OpVariable %_ptr_Uniform_test_block Uniform - %11 = OpConstant %idx_type 0 + %11 = OpConstant %uint 0 %12 = OpSpecConstant %uint 42 %14 = OpSpecConstantComposite %Foo %12 ; testing this %_ptr_Uniform_Foo = OpTypePointer Uniform %Foo diff --git a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_vec.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_vec.spvasm index 1b721fc4e..31e4513fe 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_vec.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_composite_uint_vec.spvasm @@ -35,13 +35,12 @@ OpDecorate %12 SpecId 0 %void = OpTypeVoid %3 = OpTypeFunction %void - %idx_type = OpTypeInt 32 0 %uint = OpTypeInt 32 0 %vec_uint = OpTypeVector %uint 3 %test_block = OpTypeStruct %vec_uint %_ptr_Uniform_test_block = OpTypePointer Uniform %test_block %_ = OpVariable %_ptr_Uniform_test_block Uniform - %11 = OpConstant %idx_type 0 + %11 = OpConstant %uint 0 %12 = OpSpecConstant %uint 42 %13 = OpSpecConstantComposite %vec_uint %12 %12 %12 ; testing this %ptr_vec_uint = OpTypePointer Uniform %vec_uint diff --git a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_uint.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_uint.spvasm index 834e2ac84..49813991e 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_uint.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_spec_constant_uint.spvasm @@ -36,11 +36,10 @@ %void = OpTypeVoid %3 = OpTypeFunction %void %uint = OpTypeInt 32 0 - %idx_type = OpTypeInt 32 0 %a_block = OpTypeStruct %uint %ptr_Uniform_block = OpTypePointer Uniform %a_block %_ = OpVariable %ptr_Uniform_block Uniform - %10 = OpConstant %idx_type 0 + %10 = OpConstant %uint 0 %11 = OpSpecConstant %uint 42 ; testing this %ptr_Uniform_uint = OpTypePointer Uniform %uint %main = OpFunction %void None %3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_type_sampler.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_type_sampler.spvasm index f812f7d9c..69d63cf5d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_type_sampler.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_type_sampler.spvasm @@ -24,9 +24,8 @@ OpEntryPoint Kernel %sampler_type "sampler_type" OpSource OpenCL_C 120 %void = OpTypeVoid - %sampler1_t = OpTypeSampler - %sampler2_t = OpTypeSampler - %sampler_fn_t = OpTypeFunction %void %sampler1_t %sampler2_t + %sampler_t = OpTypeSampler + %sampler_fn_t = OpTypeFunction %void %sampler_t %sampler_t %sampler_type = OpFunction %void None %sampler_fn_t ; CHECK-GE17: define spir_kernel void @sampler_type(target("spirv.Sampler") %0, target("spirv.Sampler") %1){{.*}}!kernel_arg_type [[MD:\![0-9]+]] ; CHECK-LT17: define spir_kernel void @sampler_type(ptr %0, ptr %1){{.*}}!kernel_arg_type [[MD:\![0-9]+]] diff --git a/modules/compiler/spirv-ll/test/spvasm/op_vec_extract_v3uint.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_vec_extract_v3uint.spvasm index 471dbad87..b780d524d 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_vec_extract_v3uint.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_vec_extract_v3uint.spvasm @@ -30,13 +30,12 @@ %void = OpTypeVoid %3 = OpTypeFunction %void %uint = OpTypeInt 32 0 - %idx_ty = OpTypeInt 32 0 %v3 = OpTypeVector %uint 3 %ptr_v3 = OpTypePointer Function %v3 %8 = OpConstant %uint 42 %9 = OpConstant %uint 42 %10 = OpConstant %uint 42 - %11 = OpConstant %idx_ty 1 + %11 = OpConstant %uint 1 %12 = OpConstantComposite %v3 %8 %9 %10 %ptr_uint = OpTypePointer Function %uint %main = OpFunction %void None %3 diff --git a/modules/compiler/spirv-ll/test/spvasm/op_vec_insert_v3uint.spvasm b/modules/compiler/spirv-ll/test/spvasm/op_vec_insert_v3uint.spvasm index 27c6c7f19..c45ea17c5 100644 --- a/modules/compiler/spirv-ll/test/spvasm/op_vec_insert_v3uint.spvasm +++ b/modules/compiler/spirv-ll/test/spvasm/op_vec_insert_v3uint.spvasm @@ -30,13 +30,12 @@ %void = OpTypeVoid %2 = OpTypeFunction %void %uint = OpTypeInt 32 0 - %idx_ty = OpTypeInt 32 0 %v3 = OpTypeVector %uint 3 %ptr_v3 = OpTypePointer Function %v3 %3 = OpConstant %uint 42 %4 = OpConstant %uint 42 %5 = OpConstant %uint 42 - %6 = OpConstant %idx_ty 1 + %6 = OpConstant %uint 1 %7 = OpConstantComposite %v3 %3 %4 %5 %main = OpFunction %void None %2 %9 = OpLabel