Skip to content

Commit

Permalink
Remove unreachable code #361
Browse files Browse the repository at this point in the history
  • Loading branch information
mortbopet authored Jun 3, 2024
1 parent 8780873 commit 0af6a3f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/processors/RISC-V/rv_alu.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ class ALU : public Component {
} else {
return op1.uValue() % op2.uValue();
}

if (op2.sValue() == 0) {
return VT_U(-1);
} else if (op1.sValue() == overflow && op2.sValue() == -1) {
// Overflow
return VT_U(overflow);
} else {
return VT_U(op1.sValue() / op2.sValue());
}
}

case ALUOp::AND:
Expand Down

0 comments on commit 0af6a3f

Please sign in to comment.