Skip to content

opencv_test_core FAILED --> MSA implementation of v_reduce_sum did not consider overflow #19432

@gititgo

Description

@gititgo
System information (version)
  • OpenCV => ❔ 4.5.0
  • Operating System / Platform => ❔ loongnix
  • Compiler => ❔ g++
Detailed description

we compiled opencv on LOONGSON 3A4000 with -mmsa option. Opencv's own test set opencv_test_core run failed. The specific error information is as follows:

355 [ RUN ] hal_intrin128.int8x16_BASELINE
356 SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int8()
357 /home/loongson/cloudspace/opencv/modules/core/test/test_intrin_utils.hpp:905: Failure
358 Expected equality of these values:
359 (int)(sum)
360 Which is: 136
361 (int)v_reduce_sum(a)
362 Which is: -120
363 [ FAILED ] hal_intrin128.int8x16_BASELINE (1 ms)

Steps to reproduce
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions