Skip to content

Commit

Permalink
Fix translate.c: vadd2h/sub2h don't require even reg
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetgarc authored and Cupertino Miranda committed Jul 21, 2021
1 parent de44ad0 commit a2fa829
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions target/arc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,9 @@ arc_gen_VADD2(DisasCtxt *ctx, TCGv dest, TCGv_i32 b, TCGv_i32 c)
static int
arc_gen_VADD2H(DisasCtxt *ctx, TCGv dest, TCGv_i32 b, TCGv_i32 c)
{
if (verify_all_regs_are_even(ctx)) {
gen_cc_prologue(ctx);
gen_vec_op2h(ctx, gen_add16, dest, b, c);
gen_cc_epilogue(ctx);
}
gen_cc_prologue(ctx);
gen_vec_op2h(ctx, gen_add16, dest, b, c);
gen_cc_epilogue(ctx);
return DISAS_NEXT;
}

Expand Down

0 comments on commit a2fa829

Please sign in to comment.