fix builds with t-head toolchains that use old versions of the intrinsics spec
This commit is contained in:
@@ -27,28 +27,36 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "common.h"
|
||||
#if !defined(DOUBLE)
|
||||
#define VSETVL(n) __riscv_vsetvl_e32m2(n)
|
||||
#define VSETVL(n) RISCV_RVV(vsetvl_e32m2)(n)
|
||||
#define FLOAT_V_T vfloat32m2_t
|
||||
#define FLOAT_V_T_M1 vfloat32m1_t
|
||||
#define VLEV_FLOAT __riscv_vle32_v_f32m2
|
||||
#define VLSEV_FLOAT __riscv_vlse32_v_f32m2
|
||||
#define VFREDSUM_FLOAT __riscv_vfredusum_vs_f32m2_f32m1
|
||||
#define VFMACCVV_FLOAT __riscv_vfmacc_vv_f32m2
|
||||
#define VFMVVF_FLOAT __riscv_vfmv_v_f_f32m2
|
||||
#define VFMVVF_FLOAT_M1 __riscv_vfmv_v_f_f32m1
|
||||
#define VFMULVV_FLOAT __riscv_vfmul_vv_f32m2
|
||||
#define VLEV_FLOAT RISCV_RVV(vle32_v_f32m2)
|
||||
#define VLSEV_FLOAT RISCV_RVV(vlse32_v_f32m2)
|
||||
#ifdef RISCV_0p10_INTRINSICS
|
||||
#define VFREDSUM_FLOAT(va, vb, gvl) vfredusum_vs_f32m2_f32m1(v_res, va, vb, gvl)
|
||||
#else
|
||||
#define VFREDSUM_FLOAT RISCV_RVV(vfredusum_vs_f32m2_f32m1)
|
||||
#endif
|
||||
#define VFMACCVV_FLOAT RISCV_RVV(vfmacc_vv_f32m2)
|
||||
#define VFMVVF_FLOAT RISCV_RVV(vfmv_v_f_f32m2)
|
||||
#define VFMVVF_FLOAT_M1 RISCV_RVV(vfmv_v_f_f32m1)
|
||||
#define VFMULVV_FLOAT RISCV_RVV(vfmul_vv_f32m2)
|
||||
#define xint_t int
|
||||
#else
|
||||
#define VSETVL(n) __riscv_vsetvl_e64m2(n)
|
||||
#define VSETVL(n) RISCV_RVV(vsetvl_e64m2)(n)
|
||||
#define FLOAT_V_T vfloat64m2_t
|
||||
#define FLOAT_V_T_M1 vfloat64m1_t
|
||||
#define VLEV_FLOAT __riscv_vle64_v_f64m2
|
||||
#define VLSEV_FLOAT __riscv_vlse64_v_f64m2
|
||||
#define VFREDSUM_FLOAT __riscv_vfredusum_vs_f64m2_f64m1
|
||||
#define VFMACCVV_FLOAT __riscv_vfmacc_vv_f64m2
|
||||
#define VFMVVF_FLOAT __riscv_vfmv_v_f_f64m2
|
||||
#define VFMVVF_FLOAT_M1 __riscv_vfmv_v_f_f64m1
|
||||
#define VFMULVV_FLOAT __riscv_vfmul_vv_f64m2
|
||||
#define VLEV_FLOAT RISCV_RVV(vle64_v_f64m2)
|
||||
#define VLSEV_FLOAT RISCV_RVV(vlse64_v_f64m2)
|
||||
#ifdef RISCV_0p10_INTRINSICS
|
||||
#define VFREDSUM_FLOAT(va, vb, gvl) vfredusum_vs_f64m2_f64m1(v_res, va, vb, gvl)
|
||||
#else
|
||||
#define VFREDSUM_FLOAT RISCV_RVV(vfredusum_vs_f64m2_f64m1)
|
||||
#endif
|
||||
#define VFMACCVV_FLOAT RISCV_RVV(vfmacc_vv_f64m2)
|
||||
#define VFMVVF_FLOAT RISCV_RVV(vfmv_v_f_f64m2)
|
||||
#define VFMVVF_FLOAT_M1 RISCV_RVV(vfmv_v_f_f64m1)
|
||||
#define VFMULVV_FLOAT RISCV_RVV(vfmul_vv_f64m2)
|
||||
#define xint_t long long
|
||||
#endif
|
||||
|
||||
@@ -60,7 +68,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO
|
||||
FLOAT temp;
|
||||
|
||||
FLOAT_V_T va, vr, vx;
|
||||
BLASLONG gvl = 0;
|
||||
unsigned int gvl = 0;
|
||||
FLOAT_V_T_M1 v_res;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user