When adding o_mask to this function, we used it in a couple of places but failed to save it for future use. Also, update a related comment.
Cc: [email protected] Fixes: 9e397cc0df9 ("tcg/optimize: Introduce fold_masks_zosa") Reported-by: Manos Pitsidianakis <[email protected]> Signed-off-by: Richard Henderson <[email protected]> --- tcg/optimize.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index c546e8910b..23278799af 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1088,8 +1088,9 @@ static bool fold_masks_zosa_int(OptContext *ctx, TCGOp *op, ti = ts_info(ts); ti->z_mask = z_mask; + ti->o_mask = o_mask; - /* Canonicalize s_mask and incorporate data from z_mask. */ + /* Canonicalize s_mask and incorporate data from [zo]_mask. */ rep = clz64(~s_mask); rep = MAX(rep, clz64(z_mask)); rep = MAX(rep, clz64(~o_mask)); -- 2.43.0
