Skip to content

Commit 9460cc6

Browse files
committed
target/arc: Fix arc_gen_BBIT0
Signed-off-by: Yuriy Kolerov <[email protected]>
1 parent e422e1c commit 9460cc6

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
@@ -5637,7 +5637,7 @@ arc_gen_BBIT0(DisasCtxt *ctx, TCGv b, TCGv c, TCGv offset ATTRIBUTE_UNUSED)
56375637

56385638
/* if ((b & (1 << (c & 31))) == 0) */
56395639
tcg_gen_andi_tl(_c, c, 31);
5640-
tcg_gen_shl_tl(msk, msk, _c);
5640+
tcg_gen_shl_tl(_c, msk, msk);
56415641
tcg_gen_and_tl(bit, b, msk);
56425642
tcg_gen_brcondi_tl(TCG_COND_NE, bit, 0, do_not_branch);
56435643

0 commit comments

Comments
 (0)