Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
data/fd: fcvtmod: Restrict rounding mode to 'rtz' (again)
Browse files Browse the repository at this point in the history
The specification of fcvtmod requires a rounding mode of 'rtz'.
Recently we have added a commit to restrict the rounding modes
accoringly. However, that turned out to be unsufficient.
Therefore, this patch directly sets the rounding mode to 'rtz'.
As a result this patch only generates 'rtz' test cases.

Signed-off-by: Christoph Müllner <[email protected]>
  • Loading branch information
cmuellner committed Apr 2, 2024
1 parent 2ecac67 commit 315be48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv_ctg/data/fd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2010,9 +2010,9 @@ fcvtmod.w.d:
template: |-
// $comment
/* opcode: $inst ; op1:$rs1; dest:$rd; op1val:$rs1_val; valaddr_reg:$valaddr_reg;
val_offset:$val_offset; rmval:$rm_val; correctval:??; testreg:$testreg;
val_offset:$val_offset; rmval:rtz; correctval:??; testreg:$testreg;
fcsr_val:$fcsr*/
TEST_FPID_OP($inst, $rd, $rs1, $rm_val, $fcsr, $correctval, $valaddr_reg, $val_offset, $flagreg, $swreg, $testreg,$load_instr)
TEST_FPID_OP($inst, $rd, $rs1, rtz, $fcsr, $correctval, $valaddr_reg, $val_offset, $flagreg, $swreg, $testreg,$load_instr)
fltq.s:
sig:
Expand Down

0 comments on commit 315be48

Please sign in to comment.