tcg/optimize: Handle TCG_COND_TST{EQ,NE}
commitceb9ee06b719b3185183c72f818e75600c8e2607
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2023 06:44:27 +0000 (23 23:44 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 23:43:50 +0000 (3 23:43 +0000)
treee2f3b09213d2955cd0fa108a3aa84dbf4c209072
parent7e64b114d19d734dc0ecbf100e6adf18f0fb10e2
tcg/optimize: Handle TCG_COND_TST{EQ,NE}

Fold constant comparisons.
Canonicalize "tst x,x" to equality vs zero.
Canonicalize "tst x,sign" to sign test vs zero.
Fold double-word comparisons with zero parts.
Fold setcond of "tst x,pow2" to a bit extract.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c