Skip to content

Commit

Permalink
fixup! Use __riscv_vlenb
Browse files Browse the repository at this point in the history
  • Loading branch information
luhenry committed Nov 18, 2023
1 parent ca8e731 commit 12a174b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ if(SLEEF_ARCH_RISCV64 AND NOT DISABLE_RVVM1)
CHECK_C_SOURCE_COMPILES("
#include <riscv_vector.h>
int main() {
vint32m1_t r = __riscv_vmv_v_x_i32m1(1, __riscv_v_min_vlen / 32); }"
vint32m1_t r = __riscv_vmv_v_x_i32m1(1, __riscv_vlenb() * 8 / 32); }"
COMPILER_SUPPORTS_RVVM1)

if(COMPILER_SUPPORTS_RVVM1)
Expand All @@ -656,7 +656,7 @@ if(SLEEF_ARCH_RISCV64 AND NOT DISABLE_RVVM2)
CHECK_C_SOURCE_COMPILES("
#include <riscv_vector.h>
int main() {
vint32m2_t r = __riscv_vmv_v_x_i32m2(1, __riscv_v_min_vlen / 32); }"
vint32m2_t r = __riscv_vmv_v_x_i32m2(1, 2 * __riscv_vlenb() * 8 / 32); }"
COMPILER_SUPPORTS_RVVM2)

if(COMPILER_SUPPORTS_RVVM2)
Expand Down

0 comments on commit 12a174b

Please sign in to comment.