Skip to content

Commit

Permalink
Removed extra operand from udiv and sdiv (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
sschriner authored Jun 10, 2021
1 parent 123a1c3 commit 6a9bf2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Arch/AArch32/Semantics/BINARY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ DEF_COND_SEM(SMLSD, R32W dst, R32 src1, R32 src2, R32 src3) { // rn rm ra
return memory;
}

DEF_COND_SEM(SDIV, R32W dst, R32 src1, R32 src2, R32 src3) { // rn rm
DEF_COND_SEM(SDIV, R32W dst, R32 src1, R32 src2) { // rn rm
auto rn = Signed(Read(src1));
auto rm = Signed(Read(src2));
if (!rm) {
Expand All @@ -544,7 +544,7 @@ DEF_COND_SEM(SDIV, R32W dst, R32 src1, R32 src2, R32 src3) { // rn rm
return memory;
}

DEF_COND_SEM(UDIV, R32W dst, R32 src1, R32 src2, R32 src3) { // rn rm
DEF_COND_SEM(UDIV, R32W dst, R32 src1, R32 src2) { // rn rm
auto rn = Read(src1);
auto rm = Read(src2);
if (!rm) {
Expand Down

0 comments on commit 6a9bf2b

Please sign in to comment.