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

            Bug ID: 103228
           Summary: [9/10/11/12 Regression] missed optimization with |^ at
                    the gimple level
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
int f(int a, int b)
{
  b|=1u;
  b|=2;
  return b;
}

----- CUT ---
This no longer gets optimized at the gimple level but it did in 4.7.x.
This is also true for ^.

I Noticed this while writing testcases for PR 103216.

Reply via email to