Skip to content

Commit

Permalink
Add missing check for RV64 on float conversion instructions
Browse files Browse the repository at this point in the history
These two instructions are RV64-only, as noted in the comment, but were missing the check. There are other instructions in this file that did have the check so it was just an ommission.
  • Loading branch information
Timmmm authored and billmcspadden-riscv committed Apr 24, 2024
1 parent a39a1ac commit 495b52c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model/riscv_insts_dext.sail
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,11 @@ mapping clause encdec = F_UN_TYPE_D(rs1, rd, FCLASS_D) if

/* D instructions, RV64 only */

mapping clause encdec = F_UN_TYPE_D(rs1, rd, FMV_X_D) if haveDExt()
<-> 0b111_0001 @ 0b00000 @ rs1 @ 0b000 @ rd @ 0b101_0011 if haveDExt()
mapping clause encdec = F_UN_TYPE_D(rs1, rd, FMV_X_D) if haveDExt() & sizeof(xlen) >= 64
<-> 0b111_0001 @ 0b00000 @ rs1 @ 0b000 @ rd @ 0b101_0011 if haveDExt() & sizeof(xlen) >= 64

mapping clause encdec = F_UN_TYPE_D(rs1, rd, FMV_D_X) if haveDExt()
<-> 0b111_1001 @ 0b00000 @ rs1 @ 0b000 @ rd @ 0b101_0011 if haveDExt()
mapping clause encdec = F_UN_TYPE_D(rs1, rd, FMV_D_X) if haveDExt() & sizeof(xlen) >= 64
<-> 0b111_1001 @ 0b00000 @ rs1 @ 0b000 @ rd @ 0b101_0011 if haveDExt() & sizeof(xlen) >= 64

/* Execution semantics ================================ */

Expand Down

0 comments on commit 495b52c

Please sign in to comment.