summary refs log tree commit diff stats
path: root/tcg/s390x/tcg-target-con-str.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-09-11 03:24:10 +0000
committerRichard Henderson <richard.henderson@linaro.org>2024-09-22 06:54:50 +0200
commit50695fb83e22ad011708b738d24c6c67d6296aaa (patch)
tree44ebcba67f5cfedf85c048b263a5e08a7d84330b /tcg/s390x/tcg-target-con-str.h
parent1c7d05ff70f09367ab8b519cbbb69dd5491f85f1 (diff)
downloadfocaccia-qemu-50695fb83e22ad011708b738d24c6c67d6296aaa.tar.gz
focaccia-qemu-50695fb83e22ad011708b738d24c6c67d6296aaa.zip
tcg/s390x: Optimize cmpsel with constant 0/-1 arguments
These can be simplified to and/or/andc/orc,
avoiding the load of the constantinto a register.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/s390x/tcg-target-con-str.h')
-rw-r--r--tcg/s390x/tcg-target-con-str.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/s390x/tcg-target-con-str.h b/tcg/s390x/tcg-target-con-str.h
index 745f6c0df5..3e574e0662 100644
--- a/tcg/s390x/tcg-target-con-str.h
+++ b/tcg/s390x/tcg-target-con-str.h
@@ -20,6 +20,7 @@ CONST('C', TCG_CT_CONST_CMP)
 CONST('I', TCG_CT_CONST_S16)
 CONST('J', TCG_CT_CONST_S32)
 CONST('K', TCG_CT_CONST_P32)
+CONST('M', TCG_CT_CONST_M1)
 CONST('N', TCG_CT_CONST_INV)
 CONST('R', TCG_CT_CONST_INVRISBG)
 CONST('U', TCG_CT_CONST_U32)