]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Convert extrl_i64_i32 to TCGOutOpUnary
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 12 Jan 2025 20:57:13 +0000 (12:57 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Apr 2025 20:40:17 +0000 (13:40 -0700)
commit1e6fec9dd90756b22331a3c4c6859c51ad3a2c3e
treeb9e66fae975abef1174ba8601e92021107cb2b8d
parentc1ad25de11ccf47a650c860f490864dcf7fe7675
tcg: Convert extrl_i64_i32 to TCGOutOpUnary

Drop the cast from TCGv_i64 to TCGv_i32 in tcg_gen_extrl_i64_i32
an emit extrl_i64_i32 unconditionally.  Move that special case
to tcg_gen_code when we find out if the output is live or dead.
In this way even hosts that canonicalize truncations can make
use of a store directly from the 64-bit host register.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc
tcg/i386/tcg-target.c.inc
tcg/loongarch64/tcg-target.c.inc
tcg/mips/tcg-target.c.inc
tcg/ppc/tcg-target.c.inc
tcg/riscv/tcg-target.c.inc
tcg/s390x/tcg-target.c.inc
tcg/tcg-op.c
tcg/tcg.c
tcg/tci/tcg-target.c.inc