target/s390x: Improve general case of disas_jcc
commitf9ec459da8b15e857e0ffd94ccb6276284592cce
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Nov 2023 23:07:58 +0000 (6 15:07 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 23:53:25 +0000 (3 23:53 +0000)
tree1a25d0ec6741df9e8344ce00e5f1fbd65ddeae32
parent7da3601e624e31a1bd7f94d1557a6e61af883ec8
target/s390x: Improve general case of disas_jcc

Avoid code duplication by handling 7 of the 14 cases
by inverting the test for the other 7 cases.

Use TCG_COND_TSTNE for cc in {1,3}.
Use (cc - 1) <= 1 for cc in {1,2}.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/s390x/tcg/translate.c