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

            Bug ID: 124909
           Summary: [16 regression] gcc.dg/match-shift-cmp-3 fails with
                    -fshort-enums
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rearnsha at gcc dot gnu.org
  Target Milestone: ---

On arm-eabi, this test fails now due to failing to optimize
lshift_cst_test_enum_eq.
This appears to be a regression since gcc-15.

The dump file now contains:

_Bool lshift_cst_test_enum_eq (test_enum x)
{
  int _1;
  unsigned int _2;
  unsigned int _3;
  _Bool _5;

  <bb 2> [local count: 1073741824]:
  _1 = (int) x_4(D);
  _2 = 4294967295 << _1;
  _3 = (unsigned int) x_4(D);
  _5 = _2 == _3;
  return _5;
}

instead of 

{
  return 0;
}

Reply via email to