mirror of
https://github.com/opencv/opencv.git
synced 2026-12-04 05:57:10 -06:00
v_select had no 64-bit integer form on any backend except WASM, so code that needs to blend v_int64/v_uint64 through a comparison mask had to apply the mask by hand. intrin_sse.hpp carried the two entries commented out as TBD; the other backends simply stopped at 32-bit and float64. Every backend already blends bitwise or through a byte/boolean cast, so the lane width does not change the operation: SSE _mm_blendv_pd under CV_SSE4_1, the xor/and/xor form otherwise AVX _mm256_blendv_epi8, as the narrower types already use NEON vbslq_u64 / vbslq_s64 MSA msa_bslq_u8 over the byte reinterpretation VSX vec_sel with the same boolean cast v_float64x2 uses LSX/LASX __lsx_vbitsel_v / __lasx_xvbitsel_v on the raw register RVV 0.7.1 vmerge_vvm with the b64 mask RVV __riscv_vmerge, as for the narrower types WASM already had both and is unchanged, and the generic v_reg implementation in intrin_cpp.hpp already covers every type. The 64-bit test chains could not simply call test_mask(), because its v_signmask() expectations assume more than two lanes. Added test_select(), which exercises v_select alone, and called it from TheTest<v_uint64>() and TheTest<v_int64>().