Skip to content

Commit

Permalink
Fix destination registers for fcvt.s.d and fcvt.d.s
Browse files Browse the repository at this point in the history
Issue #90 brought this to my attention. Interestingly the psuedo-instruction system convered this up.
  • Loading branch information
TheThirdOne committed Sep 8, 2020
1 parent f06c02f commit 3207ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rars/riscv/instructions/FCVTDS.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class FCVTDS extends BasicInstruction {
public FCVTDS() {
super("fcvt.d.s t1, f1, dyn", "Convert a float to a double: Assigned the value of f2 to f1",
super("fcvt.d.s f1, f2, dyn", "Convert a float to a double: Assigned the value of f2 to f1",
BasicInstructionFormat.R4_FORMAT,"0100001 00000 sssss ttt fffff 1010011");
}

Expand Down
2 changes: 1 addition & 1 deletion src/rars/riscv/instructions/FCVTSD.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class FCVTSD extends BasicInstruction {
public FCVTSD() {
super("fcvt.s.d t1, f1, dyn", "Convert a double to a float: Assigned the value of f2 to f1",
super("fcvt.s.d f1, f2, dyn", "Convert a double to a float: Assigned the value of f2 to f1",
BasicInstructionFormat.R4_FORMAT,"0100000 00001 sssss ttt fffff 1010011");
}

Expand Down

0 comments on commit 3207ee4

Please sign in to comment.