]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tcg/ppc: Implement negsetcond_*
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 5 Aug 2023 01:55:23 +0000 (01:55 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 24 Aug 2023 18:22:42 +0000 (11:22 -0700)
commitcba10bb3c8875f428821608f9dfb860a97a63aa1
tree29f577d8748cda82cb5297d14d76de05cc26b684
parentb0a433be48c120fdc2be676216a240a316f3613e
tcg/ppc: Implement negsetcond_*

In the general case we simply negate.  However with isel we
may load -1 instead of 1 with no extra effort.

Consolidate EQ0 and NE0 logic.  Replace the NE0 zero-extension
with inversion+negation of EQ0, which is never worse and may
eliminate one insn.  Provide a special case for -EQ0.

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/ppc/tcg-target.c.inc
tcg/ppc/tcg-target.h