On 2/11/25 19:46, Richard Henderson wrote:
Based-on:20250205040341.2056361-1-richard.hender...@linaro.org
("[PATCH 00/11] tcg: Cleanups after disallowing 64-on-32")

Introduce a new general-purpose constraint which maps 0
to TCG_REG_ZERO, if defined.  This differs from existing
constant constraints in that const_arg[*] is recorded as
false, indicating that the value is in a register.

This doesn't make much difference to the current tree, but as a
prelude to [1], where small output functions are categorized by
register vs immediate arguments, then this provides a way to
send a constant zero as a register argument.


r~


[1]https://patchew.org/QEMU/20250107080112.1175095-1-richard.hender...@linaro.org/

Richard Henderson (6):
   tcg: Introduce the 'z' constraint for a hardware zero register
   tcg/aarch64: Use 'z' constraint
   tcg/loongarch64: Use 'z' constraint
   tcg/mips: Use 'z' constraint
   tcg/riscv: Use 'z' constraint
   tcg/sparc64: Use 'z' constraint

Queued.


r~

Reply via email to