opencv/modules/core
Liutong HAN 97abffbdac
Merge pull request #27006 from hanliutong:rvv-fix-ui-1024
Fix issues in RISC-V Vector (RVV) Universal Intrinsic #27006

This PR aims to make `opencv_test_core` pass on RVV, via following two parts:

1. Fix bug in Universal Intrinsic when VLEN >= 512:
- `max_nlanes` should be multiplied by 2, because we use LMUL=2 in RVV Universal Intrinsic since #26318.
- Related tests are also expanded to match longer registers
- Relax the precision threshold of `v_erf` to make the tests pass

2. Temporary fix  #26936
- Disable 3 Universal Intrinsic code blocks on GCC
- This is just a temporary fix until we figure out if it's our issue or GCC/something else's

This patch is tested under the following conditions:
- Compier: GCC 14.2, Clang 19.1.7
- Device: Muse-Pi (VLEN=256), QEMU (VLEN=512, 1024)


### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2025-03-04 16:49:59 +03:00
..
3rdparty/SoftFloat Add install component for 3rdparty libraries licenses 2018-03-06 16:32:30 +03:00
cmake/parallel core(parallel): plugins support 2021-02-15 17:07:36 +00:00
doc Merge pull request #26260 from sturkmen72:upd_doc_4_x 2024-10-09 09:09:51 +03:00
include/opencv2 Merge pull request #27006 from hanliutong:rvv-fix-ui-1024 2025-03-04 16:49:59 +03:00
misc Merge pull request #25986 from asmorkalov:as/js_for_contrib 2024-08-23 10:49:08 +03:00
perf Merge pull request #26943 from GenshinImpactStarts:flip_hal_rvv 2025-02-24 08:56:23 +03:00
src Merge pull request #27006 from hanliutong:rvv-fix-ui-1024 2025-03-04 16:49:59 +03:00
test Merge pull request #27006 from hanliutong:rvv-fix-ui-1024 2025-03-04 16:49:59 +03:00
CMakeLists.txt Merge pull request #26885 from fengyuentau:4x/core/normalize_simd 2025-02-21 13:49:11 +03:00