[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/27] tcg/optimize: Build and use z_bits and o_bits in fold_n
From: |
Richard Henderson |
Subject: |
[PATCH v2 09/27] tcg/optimize: Build and use z_bits and o_bits in fold_not |
Date: |
Tue, 3 Jun 2025 09:08:50 +0100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 29d1f29124..d22396f6d7 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -2251,10 +2251,14 @@ static bool fold_nor(OptContext *ctx, TCGOp *op)
static bool fold_not(OptContext *ctx, TCGOp *op)
{
+ TempOptInfo *t1;
+
if (fold_const1(ctx, op)) {
return true;
}
- return fold_masks_s(ctx, op, arg_info(op->args[1])->s_mask);
+
+ t1 = arg_info(op->args[1]);
+ return fold_masks_zos(ctx, op, ~t1->o_mask, ~t1->z_mask, t1->s_mask);
}
static bool fold_or(OptContext *ctx, TCGOp *op)
--
2.43.0
- [PATCH v2 04/27] tcg/optimize: Build and use o_bits in fold_and, (continued)
- [PATCH v2 04/27] tcg/optimize: Build and use o_bits in fold_and, Richard Henderson, 2025/06/03
- [PATCH v2 05/27] tcg/optimize: Build and use o_bits in fold_andc, Richard Henderson, 2025/06/03
- [PATCH v2 06/27] tcg/optimize: Build and use z_bits and o_bits in fold_eqv, Richard Henderson, 2025/06/03
- [PATCH v2 07/27] tcg/optimize: Build and use z_bits and o_bits in fold_nand, Richard Henderson, 2025/06/03
- [PATCH v2 08/27] tcg/optimize: Build and use z_bits and o_bits in fold_nor, Richard Henderson, 2025/06/03
- [PATCH v2 09/27] tcg/optimize: Build and use z_bits and o_bits in fold_not,
Richard Henderson <=
- [PATCH v2 10/27] tcg/optimize: Build and use one and affected bits in fold_or, Richard Henderson, 2025/06/03
- [PATCH v2 12/27] tcg/optimize: Build and use o_bits in fold_xor, Richard Henderson, 2025/06/03
- [PATCH v2 11/27] tcg/optimize: Build and use zero, one and affected bits in fold_orc, Richard Henderson, 2025/06/03
- [PATCH v2 16/27] tcg/optimize: Build and use z_bits and o_bits in fold_extract2, Richard Henderson, 2025/06/03
- [PATCH v2 17/27] tcg/optimize: Build and use o_bits in fold_exts, Richard Henderson, 2025/06/03