Commit 88cbb9804bf59ba556f6e63ec6bb903ba8eb32a1

Authored by Aurelien Jarno
1 parent c304d317

target-mips: fix comments about SUB/DSUB

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Showing 1 changed file with 2 additions and 2 deletions
target-mips/translate.c
... ... @@ -1590,7 +1590,7 @@ static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc,
1590 1590 tcg_temp_free(t2);
1591 1591 tcg_gen_brcondi_tl(TCG_COND_GE, t1, 0, l1);
1592 1592 tcg_temp_free(t1);
1593   - /* operands of same sign, result different sign */
  1593 + /* operands of different sign, first operand and result different sign */
1594 1594 generate_exception(ctx, EXCP_OVERFLOW);
1595 1595 gen_set_label(l1);
1596 1596 gen_store_gpr(t0, rd);
... ... @@ -1665,7 +1665,7 @@ static void gen_arith (CPUState *env, DisasContext *ctx, uint32_t opc,
1665 1665 tcg_temp_free(t2);
1666 1666 tcg_gen_brcondi_tl(TCG_COND_GE, t1, 0, l1);
1667 1667 tcg_temp_free(t1);
1668   - /* operands of same sign, result different sign */
  1668 + /* operands of different sign, first operand and result different sign */
1669 1669 generate_exception(ctx, EXCP_OVERFLOW);
1670 1670 gen_set_label(l1);
1671 1671 gen_store_gpr(t0, rd);
... ...