Skip to content

Commit

Permalink
target/arc: Fix arc_gen_BBIT0
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 e422e1c commit 9460cc6
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 @@ -5637,7 +5637,7 @@ arc_gen_BBIT0(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_NE, bit, 0, do_not_branch);

Expand Down

0 comments on commit 9460cc6

Please sign in to comment.