summary refs log tree commit diff stats
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-09-14 19:25:58 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-10-05 16:53:17 -0700
commit2552d60ebd6c519027d74bd452db7580b90e5cbd (patch)
treec54c359e398a1f3dc4cc4fb85dc72560cbc82864 /scripts/qapi/commands.py
parentdc29f4746fc8c641fb1182495c2662381cc16e23 (diff)
downloadfocaccia-qemu-2552d60ebd6c519027d74bd452db7580b90e5cbd.tar.gz
focaccia-qemu-2552d60ebd6c519027d74bd452db7580b90e5cbd.zip
tcg: Expand usadd/ussub with umin/umax
For usadd, we only have to consider overflow.  Since ~B + B == -1,
the maximum value for A that saturates is ~B.

For ussub, we only have to consider underflow.  The minimum value
that saturates to 0 from A - B is B.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions