On 10/26/23 02:14, Richard Henderson wrote:
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
Also, a TST{EQ,NE} with a one-bit immediate argument can be changed to:
- a TEST reg, reg + js/jns (or sets/setns, or cmovs/cmovns) when testing bits
7, 15 or 31
- a BT reg, imm + jc/jnc (or setc/setnc, or cmovc/cmovnc) when testing other bits in the
8..63 range.
I will take a look at using this to get rid of the mask field in CCPrepare, but I would
not mind if someone else took a look at these code generation optimizations in tcg/i386.