On 10/25/2016 11:26 PM, Nikunj A Dadhania wrote:
> All the variants for rol/ror have a bug in case where the shift == 0.
> For example rol32, would generate:
> 
>     return (word << 0) | (word >> 32);
> 
> Which though works, would be flagged as a runtime error on clang's
> sanitizer.
> 
> Suggested-by: Richard Henderson <r...@twiddle.net>
> Signed-off-by: Nikunj A Dadhania <nik...@linux.vnet.ibm.com>
> ---
>  include/qemu/bitops.h | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to