]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/i386: Special case addci r, 0, 0
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 18 Jan 2025 06:39:14 +0000 (22:39 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Apr 2025 20:40:17 +0000 (13:40 -0700)
commit0ad6d64b7be6287f8c07c72f8462ef5635b1e2da
tree2a01f29fb37042c854a89cb20673458e61973659
parente37e98b711975752d592e7b2daf11d320d0a8daf
tcg/i386: Special case addci r, 0, 0

Using addci with two zeros as input in order to capture the value
of the carry-in bit is common.  Special case this with sbb+neg so
that we do not have to load 0 into a register first.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target-con-set.h
tcg/i386/tcg-target.c.inc