diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2020-09-14 19:25:58 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2021-10-05 16:53:17 -0700 |
| commit | 2552d60ebd6c519027d74bd452db7580b90e5cbd (patch) | |
| tree | c54c359e398a1f3dc4cc4fb85dc72560cbc82864 /scripts/qapi/commands.py | |
| parent | dc29f4746fc8c641fb1182495c2662381cc16e23 (diff) | |
| download | focaccia-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