aboutsummaryrefslogtreecommitdiff
path: root/tcg/i386/tcg-target-con-str.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-01-10 09:15:07 +1100
committerRichard Henderson <richard.henderson@linaro.org>2024-02-03 23:53:49 +0000
commitd3d1c30c63bba87e178b89e6610cec5a1d2afb7a (patch)
tree97aea65819cbbe73ad1abdff86712b52e972c25f /tcg/i386/tcg-target-con-str.h
parent303214aac96da86b5b11dd8aa16e646a63d3bbab (diff)
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>
Diffstat (limited to 'tcg/i386/tcg-target-con-str.h')
-rw-r--r--tcg/i386/tcg-target-con-str.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/i386/tcg-target-con-str.h b/tcg/i386/tcg-target-con-str.h
index 95a30e58cd..cc22db227b 100644
--- a/tcg/i386/tcg-target-con-str.h
+++ b/tcg/i386/tcg-target-con-str.h
@@ -28,5 +28,6 @@ REGS('s', ALL_BYTEL_REGS & ~SOFTMMU_RESERVE_REGS) /* qemu_st8_i32 data */
*/
CONST('e', TCG_CT_CONST_S32)
CONST('I', TCG_CT_CONST_I32)
+CONST('T', TCG_CT_CONST_TST)
CONST('W', TCG_CT_CONST_WSZ)
CONST('Z', TCG_CT_CONST_U32)