]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Expand fallback add2 with 32-bit operations
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Jan 2025 04:14:09 +0000 (20:14 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Apr 2025 20:40:17 +0000 (13:40 -0700)
commit3ff7e44ef35924f76dbe36510c54c27e72af9121
treef069fd02d46d203a934e69dae771c3970caedfe2
parent61d6a8767a5d4cd4fe5086ef98b53614ae099104
tcg: Expand fallback add2 with 32-bit operations

No need to expand to i64 to perform the add.
This is smaller on a loongarch64 host, e.g.

bstrpick_d  r28, r27, 31, 0
bstrpick_d  r29, r24, 31, 0
add_d       r28, r28, r29
addi_w      r29, r28, 0
srai_d      r28, r28, 32
  ---
add_w       r28, r27, r24
sltu        r29, r28, r24

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-op.c