From a2fa8291b5617501fb6e173f5119a2f2f5df0990 Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Thu, 25 Feb 2021 19:13:24 -0800 Subject: [PATCH] Fix translate.c: vadd2h/sub2h don't require even reg --- target/arc/translate.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/target/arc/translate.c b/target/arc/translate.c index 9d5f920bc3d..88757b9236a 100644 --- a/target/arc/translate.c +++ b/target/arc/translate.c @@ -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; }