Skip to content

Commit

Permalink
Fix bge/bgeu for RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePuzzlemaker committed Jan 8, 2025
1 parent 5225358 commit 3b36a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -2607,7 +2607,7 @@ def long_to_twos_complement(v: int) -> int:
if rs1 <= rs2: taken, reason = True, f"{rs1}<={rs2}"
else: taken, reason = False, f"{rs1}>{rs2}"
elif condition == "ge":
if rs1 < rs2: taken, reason = True, f"{rs1}>={rs2}"
if rs1 >= rs2: taken, reason = True, f"{rs1}>={rs2}"
else: taken, reason = False, f"{rs1}<{rs2}"
else:
raise OSError(f"RISC-V: Conditional instruction `{insn}` not supported yet")
Expand Down

0 comments on commit 3b36a93

Please sign in to comment.