diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-22 14:39:14 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-22 15:53:30 +0200 |
commit | d0414d71f612651699de019b911a772b07d0ac4a (patch) | |
tree | 2e7e675e580ed7683d5cfc6f829da0d20bf1a294 /docs/devel/index-api.rst | |
parent | 01782d6b294f95bcde334386f0aaac593cd28c0d (diff) | |
download | qemu-d0414d71f612651699de019b911a772b07d0ac4a.zip qemu-d0414d71f612651699de019b911a772b07d0ac4a.tar.gz qemu-d0414d71f612651699de019b911a772b07d0ac4a.tar.bz2 |
target/i386: generate simpler code for ROL/ROR with immediate count
gen_rot_carry and gen_rot_overflow are meant to be called with count == NULL
if the count cannot be zero. However this is not done in gen_ROL and gen_ROR,
and writing everywhere "can_be_zero ? count : NULL" is burdensome and less
readable. Just pass can_be_zero as a separate argument.
gen_RCL and gen_RCR use a conditional branch to skip the computation
if count is zero, so they can pass false unconditionally to gen_rot_overflow.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240522123914.608516-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/devel/index-api.rst')
0 files changed, 0 insertions, 0 deletions