tcg/ppc: Optimize cmpsel with constant 0/-1 arguments
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 10 Sep 2024 05:34:56 +0000 (05:34 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 22 Sep 2024 04:54:50 +0000 (06:54 +0200)
commitce8e5f2f2f585fbbf507d96477b7dd75bf9182eb
tree07c5d8ea8f4586a60546ab4debd9f8362e997c06
parentd0dabf9ec5bc8d4252cc7f166c28542a492eaaad
tcg/ppc: 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>
tcg/ppc/tcg-target-con-set.h
tcg/ppc/tcg-target.c.inc