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

            Bug ID: 93525
           Summary: Left shift and arithmetic shift could be futher
                    simplified in simplify-rtx.c
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tnfchris at gcc dot gnu.org
  Target Milestone: ---

simplify-rtx currently will fold and combine Arithmetic and Logical right
shifts with a constant shift count and fold consecutive shifts into a single
one.

If for the logical case if the if the shift count goes out of range it
truncates it to 0 but doesn't handle the case for the arithmetic shift.

Also neither operation is performed for left shifts.

Reply via email to