[PULL 000/100] tcg patch queue 20261025

Richard Henderson posted 100 patches 4 weeks ago
Failed in applying to current master (apply log)
accel/tcg/tcg-runtime.h                    |   10 -
include/qemu/compiler.h                    |    8 +
include/tcg/tcg-op-common.h                |  556 ++---
include/tcg/tcg-op-mem.h                   |   36 +-
include/tcg/tcg-temp-internal.h            |    2 +
include/tcg/tcg.h                          |   61 +-
tcg/tcg-internal.h                         |  160 +-
include/tcg/tcg-op-def.h.inc               |  110 +
accel/tcg/tcg-runtime.c                    |   44 -
tcg/tcg-op-gvec.c                          |   41 -
tcg/tcg-op-ldst.c                          |  738 +++----
tcg/tcg-op.c                               | 3031 ++++++++++------------------
tcg/tcg.c                                  |    8 +
target/ppc/translate/fixedpoint-impl.c.inc |    4 +-
14 files changed, 1837 insertions(+), 2972 deletions(-)
create mode 100644 include/tcg/tcg-op-def.h.inc
[PULL 000/100] tcg patch queue 20261025
Posted by Richard Henderson 4 weeks ago
The following changes since commit d73149283205645625bfa9fe029cfb68e4c4a9ae:

  Merge tag 'samuel-thibault' of https://people.debian.org/~sthibault/qemu into staging (2026-10-24 16:09:37 +0200)

are available in the Git repository at:

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

for you to fetch changes up to 0509b1a38002d99c28e24ba96a89c75ac08d9da7:

  tcg: Annontate functions in tcg-op-common.h with QEMU_*_NONNULL (2026-10-24 17:14:50 +0200)

----------------------------------------------------------------
tcg: Generic expansion of integer opcodes.
tcg: Annontate functions with QEMU_*_NONNULL

----------------------------------------------------------------
Richard Henderson (100):
      include/qemu/compiler: Add QEMU_*_NONNULL attributes
      tcg: Annotate functions in tcg.h with QEMU_*_NONNULL
      tcg: Annotate functions in tcg-op-mem.h with QEMU_*_NONNULL
      tcg: Annotate functions in tcg-internal.h with QEMU_*_NONNULL
      tcg: Prepare for easy temp lifetimes
      tcg: Enforce sign-extension for TCG_TYPE_I32 in tcg_constant_internal
      tcg: Generic expansion of tcg_gen_mov_*
      tcg: Generic expansion of tcg_gen_movi_*
      tcg: Generic expansion of tcg_gen_discard_*
      tcg: Generic expansion of tcg_gen_add_*
      tcg: Generic expansion of tcg_gen_addi_*
      tcg: Generic expansion of tcg_gen_sub_*
      tcg: Generic expansion of tcg_gen_subi_*
      tcg: Generic expansion of tcg_gen_neg_*
      tcg: Generic expansion of tcg_gen_subfi_*
      tcg: Generic expansion of tcg_gen_and_*
      tcg: Generic expansion of tcg_gen_or_*
      tcg: Generic expansion of tcg_gen_xor_*
      tcg: Generic expansion of tcg_gen_shl_*
      tcg: Generic expansion of tcg_gen_shr_*
      tcg: Generic expansion of tcg_gen_sar_*
      tcg: Generic expansion of tcg_gen_mul_*
      tcg: Generic expansion of tcg_gen_shli_*
      tcg: Generic expansion of tcg_gen_shri_*
      tcg: Generic expansion of tcg_gen_sari_*
      tcg: Generic expansion of tcg_gen_andi_*
      tcg: Generic expansion of tcg_gen_ori_*
      tcg: Generic expansion of tcg_gen_xori_*
      tcg: Generic expansion of tcg_gen_muli_*
      tcg: Generic expansion of tcg_gen_not_*
      tcg: Drop division helpers
      tcg: Generic expansion of tcg_gen_div_*
      tcg: Generic expansion of tcg_gen_rem_*
      tcg: Generic expansion of tcg_gen_divu_*
      tcg: Generic expansion of tcg_gen_remu_*
      tcg: Generic expansion of tcg_gen_andc_*
      tcg: Generic expansion of tcg_gen_eqv_*
      tcg: Generic expansion of tcg_gen_nand_*
      tcg: Generic expansion of tcg_gen_nor_*
      tcg: Generic expansion of tcg_gen_orc_*
      tcg: Generic expansion of tcg_gen_brcond_*
      tcg: Generic expansion of tcg_gen_brcondi_*
      tcg: Generic expansion of tcg_gen_setcond_*
      tcg: Generic expansion of tcg_gen_setcondi_*
      tcg: Generic expansion of tcg_gen_negsetcond_*
      tcg: Generic expansion of tcg_gen_negsetcondi_*
      tcg: Generic expansion of tcg_gen_movcond_*
      tcg: Split out tcg_gen_ext{rl,rh,s,u}
      tcg: Convert ext/trunc from TCGv_ptr to the new interfaces
      tcg: Generic expansion of tcg_gen_clz_*
      tcg: Use signed integer for tcg_gen_{clz,ctz}i_{i32,i64}
      tcg: Generic expansion of tcg_gen_clzi_*
      tcg: Generic expansion of tcg_gen_ctpop_*
      tcg: Generic expansion of tcg_gen_ctz_*
      tcg: Generic expansion of tcg_gen_ctzi_*
      tcg: Generic expansion of tcg_gen_clrsb_*
      tcg: Generic expansion of tcg_gen_rotl_*
      tcg: Generic expansion of tcg_gen_rotr_*
      tcg: Generic expansion of tcg_gen_rotri_*
      tcg: Generic expansion of tcg_gen_rotli_*
      tcg: Generic expansion of tcg_gen_deposit_*
      tcg: Generic expansion of tcg_gen_extract_*
      tcg: Generic expansion of tcg_gen_sextract_*
      tcg: Generic expansion of tcg_gen_deposit_z_*
      tcg: Generic expansion of tcg_gen_ext8s_*
      tcg: Generic expansion of tcg_gen_ext8u_*
      tcg: Generic expansion of tcg_gen_ext16s_*
      tcg: Generic expansion of tcg_gen_ext16u_*
      tcg: Generic expansion of tcg_gen_ext_*
      tcg: Generic expansion of tcg_gen_smin_*
      tcg: Generic expansion of tcg_gen_smax_*
      tcg: Generic expansion of tcg_gen_umin_*
      tcg: Generic expansion of tcg_gen_umax_*
      tcg: Generic expansion of tcg_gen_abs_*
      tcg: Generic expansion of tcg_gen_ussub_*
      tcg: Use umax in ussub if available
      tcg: Generic expansion of tcg_gen_extract2_*
      tcg: Generic expansion of tcg_gen_addcio_*
      tcg: Generic expansion of tcg_gen_add2_*
      tcg: Generic expansion of tcg_gen_sub2_*
      tcg: Generic expansion of tcg_gen_mulu2_*
      tcg: Generic expansion of tcg_gen_muls2_*
      tcg: Use unsigned for flags for bswap and revbit operations
      tcg: Generic expansion of tcg_gen_bswap16_*
      tcg: Split out tcg_gen_bitswap
      tcg: Generic expansion of tcg_gen_revbit8_*
      tcg: Generic expansion of tcg_gen_ld_*
      tcg: Generic expansion of tcg_gen_ld8s_*
      tcg: Generic expansion of tcg_gen_ld8u_*
      tcg: Generic expansion of tcg_gen_ld16s_*
      tcg: Generic expansion of tcg_gen_ld16u_*
      tcg: Generic expansion of tcg_gen_st_*
      tcg: Generic expansion of tcg_gen_st8_*
      tcg: Generic expansion of tcg_gen_st16_*
      tcg: Generic expansion of tcg_gen_dup_*
      tcg: Generic expansion of tcg_gen_qemu_ld_chk
      tcg: Generic expansion of tcg_gen_qemu_st_chk
      tcg: Generic expansion of tcg_gen_{non}atomic_cmpxchg_chk
      tcg: Generic expansion of remaining atomic operations
      tcg: Annontate functions in tcg-op-common.h with QEMU_*_NONNULL

 accel/tcg/tcg-runtime.h                    |   10 -
 include/qemu/compiler.h                    |    8 +
 include/tcg/tcg-op-common.h                |  556 ++---
 include/tcg/tcg-op-mem.h                   |   36 +-
 include/tcg/tcg-temp-internal.h            |    2 +
 include/tcg/tcg.h                          |   61 +-
 tcg/tcg-internal.h                         |  160 +-
 include/tcg/tcg-op-def.h.inc               |  110 +
 accel/tcg/tcg-runtime.c                    |   44 -
 tcg/tcg-op-gvec.c                          |   41 -
 tcg/tcg-op-ldst.c                          |  738 +++----
 tcg/tcg-op.c                               | 3031 ++++++++++------------------
 tcg/tcg.c                                  |    8 +
 target/ppc/translate/fixedpoint-impl.c.inc |    4 +-
 14 files changed, 1837 insertions(+), 2972 deletions(-)
 create mode 100644 include/tcg/tcg-op-def.h.inc
Re: [PULL 000/100] tcg patch queue 20261025
Posted by Philippe Mathieu-Daudé 3 weeks, 5 days ago
Hi Richard,

On 25/10/26 08:17, Richard Henderson wrote:
> The following changes since commit d73149283205645625bfa9fe029cfb68e4c4a9ae:
> 
>    Merge tag 'samuel-thibault' of https://people.debian.org/~sthibault/qemu into staging (2026-10-24 16:09:37 +0200)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20261025
> 
> for you to fetch changes up to 0509b1a38002d99c28e24ba96a89c75ac08d9da7:
> 
>    tcg: Annontate functions in tcg-op-common.h with QEMU_*_NONNULL (2026-10-24 17:14:50 +0200)
> 
> ----------------------------------------------------------------
> tcg: Generic expansion of integer opcodes.
> tcg: Annontate functions with QEMU_*_NONNULL
> 
> ----------------------------------------------------------------
> Richard Henderson (100):
>        include/qemu/compiler: Add QEMU_*_NONNULL attributes
>        tcg: Annotate functions in tcg.h with QEMU_*_NONNULL
>        tcg: Annotate functions in tcg-op-mem.h with QEMU_*_NONNULL
>        tcg: Annotate functions in tcg-internal.h with QEMU_*_NONNULL
>        tcg: Prepare for easy temp lifetimes
>        tcg: Enforce sign-extension for TCG_TYPE_I32 in tcg_constant_internal
>        tcg: Generic expansion of tcg_gen_mov_*
>        tcg: Generic expansion of tcg_gen_movi_*
>        tcg: Generic expansion of tcg_gen_discard_*
>        tcg: Generic expansion of tcg_gen_add_*
>        tcg: Generic expansion of tcg_gen_addi_*
>        tcg: Generic expansion of tcg_gen_sub_*
>        tcg: Generic expansion of tcg_gen_subi_*
>        tcg: Generic expansion of tcg_gen_neg_*
>        tcg: Generic expansion of tcg_gen_subfi_*
>        tcg: Generic expansion of tcg_gen_and_*
>        tcg: Generic expansion of tcg_gen_or_*
>        tcg: Generic expansion of tcg_gen_xor_*
>        tcg: Generic expansion of tcg_gen_shl_*
>        tcg: Generic expansion of tcg_gen_shr_*
>        tcg: Generic expansion of tcg_gen_sar_*
>        tcg: Generic expansion of tcg_gen_mul_*
>        tcg: Generic expansion of tcg_gen_shli_*
>        tcg: Generic expansion of tcg_gen_shri_*
>        tcg: Generic expansion of tcg_gen_sari_*
>        tcg: Generic expansion of tcg_gen_andi_*
>        tcg: Generic expansion of tcg_gen_ori_*
>        tcg: Generic expansion of tcg_gen_xori_*
>        tcg: Generic expansion of tcg_gen_muli_*
>        tcg: Generic expansion of tcg_gen_not_*
>        tcg: Drop division helpers
>        tcg: Generic expansion of tcg_gen_div_*
>        tcg: Generic expansion of tcg_gen_rem_*
>        tcg: Generic expansion of tcg_gen_divu_*
>        tcg: Generic expansion of tcg_gen_remu_*
>        tcg: Generic expansion of tcg_gen_andc_*
>        tcg: Generic expansion of tcg_gen_eqv_*
>        tcg: Generic expansion of tcg_gen_nand_*
>        tcg: Generic expansion of tcg_gen_nor_*
>        tcg: Generic expansion of tcg_gen_orc_*
>        tcg: Generic expansion of tcg_gen_brcond_*
>        tcg: Generic expansion of tcg_gen_brcondi_*
>        tcg: Generic expansion of tcg_gen_setcond_*
>        tcg: Generic expansion of tcg_gen_setcondi_*
>        tcg: Generic expansion of tcg_gen_negsetcond_*
>        tcg: Generic expansion of tcg_gen_negsetcondi_*
>        tcg: Generic expansion of tcg_gen_movcond_*
>        tcg: Split out tcg_gen_ext{rl,rh,s,u}
>        tcg: Convert ext/trunc from TCGv_ptr to the new interfaces
>        tcg: Generic expansion of tcg_gen_clz_*
>        tcg: Use signed integer for tcg_gen_{clz,ctz}i_{i32,i64}
>        tcg: Generic expansion of tcg_gen_clzi_*
>        tcg: Generic expansion of tcg_gen_ctpop_*
>        tcg: Generic expansion of tcg_gen_ctz_*
>        tcg: Generic expansion of tcg_gen_ctzi_*
>        tcg: Generic expansion of tcg_gen_clrsb_*
>        tcg: Generic expansion of tcg_gen_rotl_*
>        tcg: Generic expansion of tcg_gen_rotr_*
>        tcg: Generic expansion of tcg_gen_rotri_*
>        tcg: Generic expansion of tcg_gen_rotli_*
>        tcg: Generic expansion of tcg_gen_deposit_*
>        tcg: Generic expansion of tcg_gen_extract_*
>        tcg: Generic expansion of tcg_gen_sextract_*
>        tcg: Generic expansion of tcg_gen_deposit_z_*
>        tcg: Generic expansion of tcg_gen_ext8s_*
>        tcg: Generic expansion of tcg_gen_ext8u_*
>        tcg: Generic expansion of tcg_gen_ext16s_*
>        tcg: Generic expansion of tcg_gen_ext16u_*
>        tcg: Generic expansion of tcg_gen_ext_*
>        tcg: Generic expansion of tcg_gen_smin_*
>        tcg: Generic expansion of tcg_gen_smax_*
>        tcg: Generic expansion of tcg_gen_umin_*
>        tcg: Generic expansion of tcg_gen_umax_*
>        tcg: Generic expansion of tcg_gen_abs_*
>        tcg: Generic expansion of tcg_gen_ussub_*
>        tcg: Use umax in ussub if available
>        tcg: Generic expansion of tcg_gen_extract2_*
>        tcg: Generic expansion of tcg_gen_addcio_*
>        tcg: Generic expansion of tcg_gen_add2_*
>        tcg: Generic expansion of tcg_gen_sub2_*
>        tcg: Generic expansion of tcg_gen_mulu2_*
>        tcg: Generic expansion of tcg_gen_muls2_*
>        tcg: Use unsigned for flags for bswap and revbit operations
>        tcg: Generic expansion of tcg_gen_bswap16_*
>        tcg: Split out tcg_gen_bitswap
>        tcg: Generic expansion of tcg_gen_revbit8_*
>        tcg: Generic expansion of tcg_gen_ld_*
>        tcg: Generic expansion of tcg_gen_ld8s_*
>        tcg: Generic expansion of tcg_gen_ld8u_*
>        tcg: Generic expansion of tcg_gen_ld16s_*
>        tcg: Generic expansion of tcg_gen_ld16u_*
>        tcg: Generic expansion of tcg_gen_st_*
>        tcg: Generic expansion of tcg_gen_st8_*
>        tcg: Generic expansion of tcg_gen_st16_*
>        tcg: Generic expansion of tcg_gen_dup_*
>        tcg: Generic expansion of tcg_gen_qemu_ld_chk
>        tcg: Generic expansion of tcg_gen_qemu_st_chk
>        tcg: Generic expansion of tcg_gen_{non}atomic_cmpxchg_chk
>        tcg: Generic expansion of remaining atomic operations
>        tcg: Annontate functions in tcg-op-common.h with QEMU_*_NONNULL

I rebased my PR but now get:

tcg/sparc64/tcg-target.c.inc: In function 'tcg_out_movi_int':
tcg/sparc64/tcg-target.c.inc:477:24: error: argument 2 null where 
non-null expected [-Werror=nonnull]
   477 |                        tcg_tbrel_diff(s, NULL));
       |                        ^~~~~~~~~~~~~~
In file included from include/tcg/tcg-op-common.h:11,
                  from ../tcg/tcg.c:41:
include/tcg/tcg.h:913:25: note: in a call to function 'tcg_tbrel_diff' 
declared 'nonnull'
   913 | static inline ptrdiff_t tcg_tbrel_diff(TCGContext *s, const 
void *target)
       |                         ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Re: [PULL 000/100] tcg patch queue 20261025
Posted by Richard Henderson 3 weeks, 5 days ago
On 10/25/26 02:17, Richard Henderson wrote:
> The following changes since commit d73149283205645625bfa9fe029cfb68e4c4a9ae:
> 
>    Merge tag 'samuel-thibault' ofhttps://people.debian.org/~sthibault/qemu into staging (2026-10-24 16:09:37 +0200)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20261025
> 
> for you to fetch changes up to 0509b1a38002d99c28e24ba96a89c75ac08d9da7:
> 
>    tcg: Annontate functions in tcg-op-common.h with QEMU_*_NONNULL (2026-10-24 17:14:50 +0200)
> 
> ----------------------------------------------------------------
> tcg: Generic expansion of integer opcodes.
> tcg: Annontate functions with QEMU_*_NONNULL

Applied, thanks.

r~