Skip to contentSkip to conversation

tcg patch queue

GIT PULL Applied Richard Henderson 2 participants 3 messages Jul 21, 2025

lore
Share & tools
lore
#0 lore raw

The following changes since commit 56a3033abcfcf72a2f4f1376a605a0b1ad526b67:

Merge tag 'pull-request-2025-07-21' of https://gitlab.com/thuth/qemu into staging (2025-07-21 06:34:56 -0400)

are available in the Git repository at:

https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20250721

for you to fetch changes up to 2c047bdb77e8f636936edd9ac5000521c9580477:

tcg/optimize: Don't fold INDEX_op_and_vec to extract (2025-07-21 08:09:04 -0700)

----------------------------------------------------------------
tcg/optimize: Don't fold INDEX_op_and_vec to extract

----------------------------------------------------------------
Richard Henderson (1):
tcg/optimize: Don't fold INDEX_op_and_vec to extract

 tcg/optimize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw

[PULL 1/1] tcg/optimize: Don't fold INDEX_op_and_vec to extract

There is no such thing as vector extract.

Fixes 932522a9ddc1 ("tcg/optimize: Fold and to extract during optimize")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3036

---
 tcg/optimize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/optimize.c +1 -1
index 62a128bc9b..3638ab9fea 100644
@@ -1454,7 +1454,7 @@ static bool fold_and(OptContext *ctx, TCGOp *op)
     a_mask = t1->z_mask & ~t2->o_mask;
 
     if (!fold_masks_zosa_int(ctx, op, z_mask, o_mask, s_mask, a_mask)) {
-        if (ti_is_const(t2)) {
+        if (op->opc == INDEX_op_and && ti_is_const(t2)) {
             /*
              * Canonicalize on extract, if valid.  This aids x86 with its
              * 2 operand MOVZBL and 2 operand AND, selecting the TCGOpcode
Signature · 1 line
2.43.0