[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/46] tcg/optimize: Use fold_masks_zsa in fold_extu
From: |
Richard Henderson |
Subject: |
[PATCH 18/46] tcg/optimize: Use fold_masks_zsa in fold_extu |
Date: |
Tue, 10 Dec 2024 09:23:33 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 5d10e704a7..260e3ea072 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -1804,7 +1804,7 @@ static bool fold_exts(OptContext *ctx, TCGOp *op)
static bool fold_extu(OptContext *ctx, TCGOp *op)
{
- uint64_t z_mask_old, z_mask;
+ uint64_t z_mask_old, z_mask, s_mask, a_mask = -1;
bool type_change = false;
if (fold_const1(ctx, op)) {
@@ -1835,12 +1835,12 @@ static bool fold_extu(OptContext *ctx, TCGOp *op)
g_assert_not_reached();
}
- ctx->z_mask = z_mask;
- ctx->s_mask = smask_from_zmask(z_mask);
+ s_mask = smask_from_zmask(z_mask);
if (!type_change) {
- ctx->a_mask = z_mask_old ^ z_mask;
+ a_mask = z_mask_old ^ z_mask;
}
- return fold_masks(ctx, op);
+
+ return fold_masks_zsa(ctx, op, z_mask, s_mask, a_mask);
}
static bool fold_mb(OptContext *ctx, TCGOp *op)
--
2.43.0
- [PATCH 08/46] tcg/optimize: Use fold_masks_zs in fold_bswap, (continued)
- [PATCH 08/46] tcg/optimize: Use fold_masks_zs in fold_bswap, Richard Henderson, 2024/12/10
- [PATCH 09/46] tcg/optimize: Use fold_masks_z in fold_count_zeros, Richard Henderson, 2024/12/10
- [PATCH 10/46] tcg/optimize: Use fold_masks_z in fold_ctpop, Richard Henderson, 2024/12/10
- [PATCH 12/46] tcg/optimize: Use finish_folding in fold_divide, Richard Henderson, 2024/12/10
- [PATCH 11/46] tcg/optimize: Use fold_and and fold_masks_z in fold_deposit, Richard Henderson, 2024/12/10
- [PATCH 18/46] tcg/optimize: Use fold_masks_zsa in fold_extu,
Richard Henderson <=
- [PATCH 16/46] tcg/optimize: Use finish_folding in fold_extract2, Richard Henderson, 2024/12/10
- [PATCH 19/46] tcg/optimize: Use fold_masks_zs in fold_movcond, Richard Henderson, 2024/12/10
- [PATCH 20/46] tcg/optimize: Use finish_folding in fold_mul*, Richard Henderson, 2024/12/10
- [PATCH 26/46] tcg/optimize: Use fold_masks_zs in fold_orc, Richard Henderson, 2024/12/10
- [PATCH 23/46] tcg/optimize: Use fold_masks_zs in fold_nor, Richard Henderson, 2024/12/10