Skip to content

Commit

Permalink
fix(vf): do not set dirtyFs for some instructions (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin authored Oct 28, 2024
1 parent 332983b commit 16e2c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isa/riscv64/instr/rvv/vcompute_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ void floating_arthimetic_instr(int opcode, int is_signed, int widening, int dest
}
check_vstart_exception(s);
if(check_vstart_ignore(s)) {
if (opcode != FCLASS) {
if (opcode != FCLASS && opcode != FMERGE && opcode != FSLIDE1UP && opcode != FSLIDE1DOWN) {
fp_set_dirty();
}
vp_set_dirty();
Expand Down Expand Up @@ -1261,7 +1261,7 @@ void floating_arthimetic_instr(int opcode, int is_signed, int widening, int dest

rtl_li(s, s0, 0);
vcsr_write(IDXVSTART, s0);
if (opcode != FCLASS) {
if (opcode != FCLASS && opcode != FMERGE && opcode != FSLIDE1UP && opcode != FSLIDE1DOWN) {
fp_set_dirty();
}
vp_set_dirty();
Expand Down

0 comments on commit 16e2c95

Please sign in to comment.