]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/i386: Improve TSTNE/TESTEQ vs powers of two
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jan 2024 22:15:07 +0000 (09:15 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 23:53:49 +0000 (23:53 +0000)
commitd3d1c30c63bba87e178b89e6610cec5a1d2afb7a
tree97aea65819cbbe73ad1abdff86712b52e972c25f
parent303214aac96da86b5b11dd8aa16e646a63d3bbab
tcg/i386: Improve TSTNE/TESTEQ vs powers of two

Use "test x,x" when the bit is one of the 4 sign bits.
Use "bt imm,x" otherwise.

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