Skip to content

Commit 3799326

Browse files
authored
Merge pull request #126 from alanjian85/master
Fix the implementations of FCVT.S.W and FCVT.S.WU
2 parents bdc5348 + ec04a12 commit 3799326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/emulate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,10 +1028,10 @@ RVOP(fclasss, {
10281028
})
10291029

10301030
/* FCVT.S.W */
1031-
RVOP(fcvtsw, { rv->F_int[ir->rd] = rv->X[ir->rs1]; })
1031+
RVOP(fcvtsw, { rv->F[ir->rd] = (int32_t) rv->X[ir->rs1]; })
10321032

10331033
/* FCVT.S.WU */
1034-
RVOP(fcvtswu, { rv->F_int[ir->rd] = rv->X[ir->rs1]; })
1034+
RVOP(fcvtswu, { rv->F[ir->rd] = rv->X[ir->rs1]; })
10351035

10361036
/* FMV.W.X */
10371037
RVOP(fmvwx, { rv->F_int[ir->rd] = rv->X[ir->rs1]; })

0 commit comments

Comments
 (0)