Skip to content

Commit c191641

Browse files
committed
target/arc: Fix arc_gen_BBIT1
Signed-off-by: Yuriy Kolerov <[email protected]>
1 parent 4979870 commit c191641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/arc/semfunc-v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5671,7 +5671,7 @@ arc_gen_BBIT1(DisasCtxt *ctx, TCGv b, TCGv c, TCGv offset ATTRIBUTE_UNUSED)
56715671

56725672
/* if ((b & (1 << (c & 31))) != 0) */
56735673
tcg_gen_andi_tl(_c, c, 31);
5674-
tcg_gen_shl_tl(msk, msk, _c);
5674+
tcg_gen_shl_tl(_c, msk, msk);
56755675
tcg_gen_and_tl(bit, b, msk);
56765676
tcg_gen_brcondi_tl(TCG_COND_EQ, bit, 0, do_not_branch);
56775677

0 commit comments

Comments
 (0)