Skip to content

Commit

Permalink
fix(vfredusum): set xstatus.fs and xstatus.vs dirty (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin authored Oct 28, 2024
1 parent c1e2447 commit 332983b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/isa/riscv64/instr/rvv/vcompute_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,11 @@ void float_reduction_computing(Decode *s) {
}

check_vstart_exception(s);
if(check_vstart_ignore(s)) return;
if(check_vstart_ignore(s)) {
fp_set_dirty();
vp_set_dirty();
return;
}

// copy the vector register to the temp register
init_tmp_vreg(s, vtype->vsew);
Expand Down Expand Up @@ -1596,6 +1600,8 @@ void float_reduction_computing(Decode *s) {
if (vl->val != 0) {
set_vreg(id_dest->reg, 0, *s1, vtype->vsew, vtype->vlmul, 0);
}
fp_set_dirty();
vp_set_dirty();
vstart->val = 0;
}

Expand Down

0 comments on commit 332983b

Please sign in to comment.