tcg/optimize: Save o_mask in fold_masks_zosa_int
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: qemu-stable@nongnu.org
Fixes: 56f15f67ea ("tcg/optimize: Add one's mask to TempOptInfo")
Reported-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user