Skip to content

Commit

Permalink
target/arc: Fix arc_gen_BBIT1
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy Kolerov <[email protected]>
  • Loading branch information
kolerov committed Jul 16, 2024
1 parent 4979870 commit c191641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/arc/semfunc-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5671,7 +5671,7 @@ arc_gen_BBIT1(DisasCtxt *ctx, TCGv b, TCGv c, TCGv offset ATTRIBUTE_UNUSED)

/* if ((b & (1 << (c & 31))) != 0) */
tcg_gen_andi_tl(_c, c, 31);
tcg_gen_shl_tl(msk, msk, _c);
tcg_gen_shl_tl(_c, msk, msk);
tcg_gen_and_tl(bit, b, msk);
tcg_gen_brcondi_tl(TCG_COND_EQ, bit, 0, do_not_branch);

Expand Down

0 comments on commit c191641

Please sign in to comment.