[Bug c++/83710] Unsigned with Signed multiplication followed by right shift

chanpreet.singh at nxp dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 6 09:37:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83710

--- Comment #4 from Chanpreet Singh <chanpreet.singh at nxp dot com> ---
(In reply to Andrew Pinski from comment #3)
> For imull discussion see
> https://stackoverflow.com/questions/42587607/why-is-imul-used-for-
> multiplying-unsigned-numbers .

I understand that. However, can you point to me what made the compiler choose
shrl instruction over sarl?


More information about the Gcc-bugs mailing list