Skip to content

Commit

Permalink
Fix funct field on BLTU, BGE, and BGEU
Browse files Browse the repository at this point in the history
  • Loading branch information
TheThirdOne committed Jun 17, 2018
1 parent 9ca55f6 commit 4b1c38d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rars/riscv/instructions/BGE.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a copy of this software and associated documentation files (the

public class BGE extends Branch {
public BGE() {
super("bge t1,t2,label", "Branch if greater than or equal: Branch to statement at label's address if t1 is greater than or equal to t2", "110");
super("bge t1,t2,label", "Branch if greater than or equal: Branch to statement at label's address if t1 is greater than or equal to t2", "101");
}

public boolean willBranch(ProgramStatement statement) {
Expand Down
2 changes: 1 addition & 1 deletion rars/riscv/instructions/BGEU.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a copy of this software and associated documentation files (the

public class BGEU extends Branch {
public BGEU() {
super("bgeu t1,t2,label", "Branch if greater than or equal to (unsigned): Branch to statement at label's address if t1 is greater than or equal to t2 (with an unsigned interpretation)", "100");
super("bgeu t1,t2,label", "Branch if greater than or equal to (unsigned): Branch to statement at label's address if t1 is greater than or equal to t2 (with an unsigned interpretation)", "111");
}

public boolean willBranch(ProgramStatement statement) {
Expand Down
2 changes: 1 addition & 1 deletion rars/riscv/instructions/BLTU.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a copy of this software and associated documentation files (the

public class BLTU extends Branch {
public BLTU() {
super("bltu t1,t2,label", "Branch if less than (unsigned): Branch to statement at label's address if t1 is less than t2 (with an unsigned interpretation)", "101");
super("bltu t1,t2,label", "Branch if less than (unsigned): Branch to statement at label's address if t1 is less than t2 (with an unsigned interpretation)", "110");
}

public boolean willBranch(ProgramStatement statement) {
Expand Down

0 comments on commit 4b1c38d

Please sign in to comment.