Skip to content

Commit

Permalink
guest_amd64_spechelper: Fix size inconsistency for ADDL CondZ. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish authored Nov 12, 2023
1 parent 66fa43e commit 3e4d96a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions priv/guest_amd64_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,10 @@ IRExpr* guest_amd64_spechelper ( const HChar* function_name,
/* dep1 + dep2 == 0
*/
return
binop(Iop_CmpEQ32,
binop(Iop_Add32, unop(Iop_64to32, cc_dep1), unop(Iop_64to32, cc_dep2)),
mkU32(0));
unop(Iop_1Uto64,
binop(Iop_CmpEQ32,
binop(Iop_Add32, unop(Iop_64to32, cc_dep1), unop(Iop_64to32, cc_dep2)),
mkU32(0)));
}

/*---------------- SUBQ ----------------*/
Expand Down

0 comments on commit 3e4d96a

Please sign in to comment.