Skip to content

Commit 41736e7

Browse files
committed
tcg/tci: Remove assertions for deposit and extract
We already have these assertions during opcode creation. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
1 parent d9336b7 commit 41736e7

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

tcg/tci/tcg-target.c.inc

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -775,28 +775,12 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, TCGType type,
775775
break;
776776

777777
CASE_32_64(deposit) /* Optional (TCG_TARGET_HAS_deposit_*). */
778-
{
779-
TCGArg pos = args[3], len = args[4];
780-
TCGArg max = opc == INDEX_op_deposit_i32 ? 32 : 64;
781-
782-
tcg_debug_assert(pos < max);
783-
tcg_debug_assert(pos + len <= max);
784-
785-
tcg_out_op_rrrbb(s, opc, args[0], args[1], args[2], pos, len);
786-
}
778+
tcg_out_op_rrrbb(s, opc, args[0], args[1], args[2], args[3], args[4]);
787779
break;
788780

789781
CASE_32_64(extract) /* Optional (TCG_TARGET_HAS_extract_*). */
790782
CASE_32_64(sextract) /* Optional (TCG_TARGET_HAS_sextract_*). */
791-
{
792-
TCGArg pos = args[2], len = args[3];
793-
TCGArg max = type == TCG_TYPE_I32 ? 32 : 64;
794-
795-
tcg_debug_assert(pos < max);
796-
tcg_debug_assert(pos + len <= max);
797-
798-
tcg_out_op_rrbb(s, opc, args[0], args[1], pos, len);
799-
}
783+
tcg_out_op_rrbb(s, opc, args[0], args[1], args[2], args[3]);
800784
break;
801785

802786
CASE_32_64(brcond)

0 commit comments

Comments
 (0)