Skip to content

Commit a691bf1

Browse files
authored
Update qtester4simd.cpp (#640)
Co-authored-by: Naoki Shibata <shibatch.sf.net@gmail.com>
1 parent e9bc8a5 commit a691bf1

File tree

4 files changed

+135
-234
lines changed

4 files changed

+135
-234
lines changed

Configure.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ endif()
9898
# Include TLFloat as a submodule
9999

100100
if (SLEEF_ENABLE_TLFLOAT)
101-
set(TLFLOAT_MINIMUM_VERSION 1.11.2)
102-
set(TLFLOAT_GIT_TAG "356cb5ee4218fd93fbb73c76869983408b97d90a")
101+
set(TLFLOAT_MINIMUM_VERSION 1.12.0)
102+
set(TLFLOAT_GIT_TAG "af792e6a78e3807ec03b8eda6e17a76298acd2c9")
103103

104104
set(TLFLOAT_SOURCE_DIR "${PROJECT_SOURCE_DIR}/submodules/tlfloat")
105105
set(TLFLOAT_INSTALL_DIR "${SLEEF_SUBMODULE_INSTALL_DIR}/tlfloat")

src/arch/helperrvv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ typedef vfloat64m1x4_t tdi_t;
158158

159159
#define SLEEF_RVV_SP_LMUL 1
160160
#define SLEEF_RVV_DP_LMUL 1
161-
#define SLEEF_RVV_DP_RUNTIME_VL() __riscv_vsetvlmax_e64m1()
161+
#define SLEEF_RVV_DP_RUNTIME_VL() ((int)__riscv_vsetvlmax_e64m1())
162162
#if SLEEF_RVV_VLEN == 0
163163
// The configuration didn't provide a constant vector length, meaning it'll
164164
// have to be determined at run-time. RVV offers per-data-width operations for
165165
// this so the result doesn't need to be adjusted and that operation is likely
166166
// to fold into the surrounding code for free.
167167
//
168-
#define VECTLENSP (__riscv_vsetvlmax_e32m1())
168+
#define VECTLENSP ((int)__riscv_vsetvlmax_e32m1())
169169
#define VECTLENDP SLEEF_RVV_DP_RUNTIME_VL()
170170
//@#define VECTLENSP __riscv_vsetvlmax_e32m1()
171171
//@#define VECTLENDP __riscv_vsetvlmax_e64m1()
@@ -268,7 +268,7 @@ typedef vfloat64m2x4_t tdi_t;
268268

269269
#define SLEEF_RVV_SP_LMUL 2
270270
#define SLEEF_RVV_DP_LMUL 2
271-
#define SLEEF_RVV_DP_RUNTIME_VL() __riscv_vsetvlmax_e64m2()
271+
#define SLEEF_RVV_DP_RUNTIME_VL() ((int)__riscv_vsetvlmax_e64m2())
272272
#if SLEEF_RVV_VLEN == 0
273273
// The configuration didn't provide a constant vector length, meaning it'll
274274
// have to be determined at run-time. RVV offers per-data-width operations for

src/arch/helpersve.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
#if CONFIG == 1 || CONFIG == 2
2424
// Vector length agnostic
25-
#define VECTLENSP (svcntw())
25+
#define VECTLENSP ((int)svcntw())
2626
//@#define VECTLENSP (svcntw())
27-
#define VECTLENDP (svcntd())
27+
#define VECTLENDP ((int)svcntd())
2828
//@#define VECTLENDP (svcntd())
2929
#define ISANAME "AArch64 SVE"
3030
#define ptrue svptrue_b8()

0 commit comments

Comments
 (0)