[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 46/81] tcg/tci: Remove assertions for deposit and extract
From: |
Richard Henderson |
Subject: |
[PATCH v2 46/81] tcg/tci: Remove assertions for deposit and extract |
Date: |
Tue, 7 Jan 2025 00:00:37 -0800 |
We already have these assertions during opcode creation.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tci/tcg-target.c.inc | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc
index 88cecbd62f..8dedddce5f 100644
--- a/tcg/tci/tcg-target.c.inc
+++ b/tcg/tci/tcg-target.c.inc
@@ -775,28 +775,12 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
TCGType type,
break;
CASE_32_64(deposit) /* Optional (TCG_TARGET_HAS_deposit_*). */
- {
- TCGArg pos = args[3], len = args[4];
- TCGArg max = opc == INDEX_op_deposit_i32 ? 32 : 64;
-
- tcg_debug_assert(pos < max);
- tcg_debug_assert(pos + len <= max);
-
- tcg_out_op_rrrbb(s, opc, args[0], args[1], args[2], pos, len);
- }
+ tcg_out_op_rrrbb(s, opc, args[0], args[1], args[2], args[3], args[4]);
break;
CASE_32_64(extract) /* Optional (TCG_TARGET_HAS_extract_*). */
CASE_32_64(sextract) /* Optional (TCG_TARGET_HAS_sextract_*). */
- {
- TCGArg pos = args[2], len = args[3];
- TCGArg max = type == TCG_TYPE_I32 ? 32 : 64;
-
- tcg_debug_assert(pos < max);
- tcg_debug_assert(pos + len <= max);
-
- tcg_out_op_rrbb(s, opc, args[0], args[1], pos, len);
- }
+ tcg_out_op_rrbb(s, opc, args[0], args[1], args[2], args[3]);
break;
CASE_32_64(brcond)
--
2.43.0
- Re: [PATCH v2 62/81] tcg/optimize: Fold orc with immediate to or, (continued)
- [PATCH v2 63/81] tcg: Convert orc to TCGOutOpBinary, Richard Henderson, 2025/01/07
- [PATCH v2 67/81] tcg/optimize: Fold eqv with immediate to xor, Richard Henderson, 2025/01/07
- [PATCH v2 66/81] tcg: Merge INDEX_op_xor_{i32,i64}, Richard Henderson, 2025/01/07
- [PATCH v2 74/81] tcg: Merge INDEX_op_nor_{i32,i64}, Richard Henderson, 2025/01/07
- [PATCH v2 45/81] tcg/tci: Provide TCG_TARGET_{s}extract_valid, Richard Henderson, 2025/01/07
- [PATCH v2 46/81] tcg/tci: Remove assertions for deposit and extract,
Richard Henderson <=
- [PATCH v2 57/81] tcg/optimize: Emit add r, r, -1 in fold_setcond_tst_pow2, Richard Henderson, 2025/01/07
- [PATCH v2 53/81] tcg: Merge INDEX_op_add_{i32,i64}, Richard Henderson, 2025/01/07
- [PATCH v2 60/81] tcg: Convert or to TCGOutOpBinary, Richard Henderson, 2025/01/07
- [PATCH v2 65/81] tcg: Convert xor to TCGOutOpBinary, Richard Henderson, 2025/01/07
- [PATCH v2 68/81] tcg: Convert eqv to TCGOutOpBinary, Richard Henderson, 2025/01/07
- [PATCH v2 78/81] tcg: Convert neg to TCGOutOpUnary, Richard Henderson, 2025/01/07
- [PATCH v2 76/81] tcg: Convert sub to TCGOutOpSubtract, Richard Henderson, 2025/01/07