Skip to content

RISC-V: added v0.12 intrinsics compatibility header#24368

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:rvv-clang-17
Oct 12, 2023
Merged

RISC-V: added v0.12 intrinsics compatibility header#24368
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:rvv-clang-17

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin commented Oct 6, 2023

Fixes compilation with Clang 17 (tested) and GCC trunk (not tested).
Default rounding mode is chosen to be "round to nearest up". Only two intrinsics are actually used in OpenCV code: vnclip and vnclipu. Others were added for completeness.

force_builders=Custom
Xbuild_image:Custom=riscv-gcc
build_image:Custom=riscv-clang-rvv
Xbuild_image:Custom=riscv-clang-rvv-128
Xbuild_image:Custom=riscv-gcc-rvv-07
test_modules:Custom=core,imgproc,dnn
buildworker:Custom=linux-1
test_timeout:Custom=600
build_contrib:Custom=OFF

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov asmorkalov merged commit 7e17f01 into opencv:4.x Oct 12, 2023
@mshabunin mshabunin deleted the rvv-clang-17 branch October 12, 2023 17:20
@asmorkalov asmorkalov mentioned this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants