Files
opencv-MIRROR/modules/core/test
pranayr710 972c61904e core: hal: add v_select for the 64-bit integer lanes
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>().
2026-09-27 10:22:28 +05:30
..
2026-02-20 22:05:35 +03:00
2026-07-28 20:28:24 +05:30
2026-05-24 17:28:53 +03:00
2026-02-20 22:05:35 +03:00
2024-01-23 17:06:52 +03:00
2018-02-03 19:39:47 +00:00