@@ -48,9 +48,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4848#define VFADDVV_FLOAT __riscv_vfadd_vv_f64m4
4949#define VFIRSTM __riscv_vfirst_m_b16
5050#define UINT_V_T vuint64m4_t
51- #define VIDV_MASK_UINT __riscv_vid_v_u64m4_m
51+ #define VIDV_MASK_UINT __riscv_vid_v_u64m4_mu
5252#define VIDV_UINT __riscv_vid_v_u64m4
53- #define VADDVX_MASK_UINT __riscv_vadd_vx_u64m4_m
53+ #define VADDVX_MASK_UINT __riscv_vadd_vx_u64m4_mu
5454#define VADDVX_UINT __riscv_vadd_vx_u64m4
5555#define VMVVX_UINT __riscv_vmv_v_x_u64m4
5656#define VFMVFS_FLOAT_M1 __riscv_vfmv_f_s_f64m1_f64
@@ -77,9 +77,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7777#define VFADDVV_FLOAT __riscv_vfadd_vv_f32m4
7878#define VFIRSTM __riscv_vfirst_m_b8
7979#define UINT_V_T vuint32m4_t
80- #define VIDV_MASK_UINT __riscv_vid_v_u32m4_m
80+ #define VIDV_MASK_UINT __riscv_vid_v_u32m4_mu
8181#define VIDV_UINT __riscv_vid_v_u32m4
82- #define VADDVX_MASK_UINT __riscv_vadd_vx_u32m4_m
82+ #define VADDVX_MASK_UINT __riscv_vadd_vx_u32m4_mu
8383#define VADDVX_UINT __riscv_vadd_vx_u32m4
8484#define VMVVX_UINT __riscv_vmv_v_x_u32m4
8585#define VFMVFS_FLOAT_M1 __riscv_vfmv_f_s_f32m1_f32
@@ -116,8 +116,8 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
116116
117117 //index where element greater than v_max
118118 mask = VMFLTVV_FLOAT (v_max , vx0 , vl );
119- v_max_index = VIDV_MASK_UINT (mask , vl );
120- v_max_index = VADDVX_MASK_UINT (mask , v_max_index , j , vl );
119+ v_max_index = VIDV_MASK_UINT (mask , v_max_index , vl );
120+ v_max_index = VADDVX_MASK_UINT (mask , v_max_index , v_max_index , j , vl );
121121
122122 //update v_max and start_index j
123123 v_max = VFMAXVV_FLOAT (v_max , vx0 , vl );
@@ -138,9 +138,9 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
138138
139139 //index where element greater than v_max
140140 mask = VMFLTVV_FLOAT (v_max , vx0 , vl );
141- v_max_index = VIDV_MASK_UINT (mask , vl );
142- v_max_index = VADDVX_MASK_UINT (mask , v_max_index , j , vl );
143-
141+ v_max_index = VIDV_MASK_UINT (mask , v_max_index , vl );
142+ v_max_index = VADDVX_MASK_UINT (mask , v_max_index , v_max_index , j , vl );
143+
144144 //update v_max and start_index j
145145 v_max = VFMAXVV_FLOAT (v_max , vx0 , vl );
146146 }
0 commit comments