[Bug target/84431] Suboptimal code for masked shifts (x86/x86-64)
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 21 07:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84431
--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Ruslan Nikolaev from comment #4)
> Thanks! I was wondering if the patch also fixes the same thing for x86-64
> (i.e., -m64); in which case we would have something like this:
>
> __uint128_t func(__uint128_t a, unsigned shift)
> {
> return a << (shift & 63);
> }
Yes, the patch also handles __int128.
More information about the Gcc-bugs
mailing list