summary refs log tree commit diff stats
path: root/scripts/qapi/expr.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-08-05 01:55:23 +0000
committerRichard Henderson <richard.henderson@linaro.org>2023-08-24 11:22:42 -0700
commitcba10bb3c8875f428821608f9dfb860a97a63aa1 (patch)
tree29f577d8748cda82cb5297d14d76de05cc26b684 /scripts/qapi/expr.py
parentb0a433be48c120fdc2be676216a240a316f3613e (diff)
downloadfocaccia-qemu-cba10bb3c8875f428821608f9dfb860a97a63aa1.tar.gz
focaccia-qemu-cba10bb3c8875f428821608f9dfb860a97a63aa1.zip
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>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions