[Bug target/115749] Non optimal assembly for integer modulo by a constant on x86-64 CPUs
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 2 11:44:49 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115749
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |X86_64
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems like a tuning issue. In that gcc thinks the shifts and stuff is
faster than mulx.
What happens if you do -march=native?
Does it use mulx?
More information about the Gcc-bugs
mailing list