https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88579
Bug ID: 88579 Summary: Calculatiing power of powers of two Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- After PR 85544 has been fixed, there are some optimizations possible which are detailed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544#c13 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544#c10 : Optimize other powers of two with a general rule involving bit counts, and also optimizing (-2)**n) and so on.