这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@asmorkalov
Copy link
Contributor

The check returns 1, even if __uqsub16 is not provided by compiler. The issue was reproduced with jetson TK1 (armv7 neon), GCC 5.4.0 and -DWITH_RUNTIME_CPU_DETECTION=ON

asmorkalov added a commit to asmorkalov/opencv that referenced this pull request Sep 10, 2024
@codecov
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.02%. Comparing base (e4fb380) to head (cfba820).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1774      +/-   ##
===========================================
- Coverage    83.33%   83.02%   -0.31%     
===========================================
  Files          132      135       +3     
  Lines        10018    10311     +293     
  Branches      2687     2786      +99     
===========================================
+ Hits          8348     8561     +213     
- Misses        1009     1053      +44     
- Partials       661      697      +36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nmoinvaz
Copy link
Member

Does this need to be fixed in the configure script too?

@Dead2
Copy link
Member

Dead2 commented Sep 11, 2024

It probably should be changed for all the tests in both CMake and Configure.

Although the compiler should balk at the code, it is known that is will not do so if for example LTO is enabled, because at linktime the compiler can discard the code as unused and never detect/ignore that it contained code it would not be able to/allowed to compile (given the current instruction set limitations).

We disable LTO during these tests in part for this reason, but there may well be other compilers/settings/conditions that will cause the same issue, now or in the future.

@asmorkalov asmorkalov force-pushed the armv6_intrin_detector_fix branch from f1ce625 to cfba820 Compare September 11, 2024 09:22
@asmorkalov
Copy link
Contributor Author

Added to the configure script too. Looks like it's not the only place in configure script where the test function is not called in main.

@Dead2 Dead2 merged commit 4549279 into zlib-ng:develop Sep 11, 2024
@nmoinvaz
Copy link
Member

nmoinvaz commented Sep 11, 2024

Looks like it's not the only place in configure script where the test function is not called in main.

Those changes were made in b7ac847 to "ensure instructions are not optimized out before assembler is run". #1562.

@nmoinvaz
Copy link
Member

nmoinvaz commented Sep 11, 2024

My question is, why is your compiler compiling for that test okay if the instruction does not exist?

asmorkalov pushed a commit to opencv/opencv that referenced this pull request Sep 12, 2024
Update zlib-ng to 2.2.1 #26113

Release: https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.1
ARM diagnostics patch: zlib-ng/zlib-ng#1774

### 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
- [x] 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
This was referenced Sep 15, 2024
thewoz pushed a commit to CobbsLab/OPENCV that referenced this pull request Feb 13, 2025
Update zlib-ng to 2.2.1 opencv#26113

Release: https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.1
ARM diagnostics patch: zlib-ng/zlib-ng#1774

### 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
- [x] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants