[Bug tree-optimization/126468] [14/15/16/17 Regression] ICE at -O2 on aarch64 during RTL pass: expand

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126468

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-07-29
     Ever confirmed|0                           |1

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---

  # RANGE [irange] int [0, 63] MASK 0x3f VALUE 0x0
  _6 = __builtin_clrsbllD.2056 (-9178289175401163344(OVF));

From sccp:
final value replacement:
  _82 = PHI <_3(23)>
 with expr: -9178289175401163344(OVF)
 final stmt:
  _82 = -9178289175401163344(OVF);

The bug is (OVF) is there ...

That is it is not getting folded afterwards and internal-fn.cc has:
```
  if (TREE_CODE (arg) == INTEGER_CST)
    {
      tree ret = fold_const_call (as_combined_fn (fn), TREE_TYPE (arg), arg);
      gcc_checking_assert (ret && TREE_CODE (ret) == INTEGER_CST);
      expand_assignment (lhs, ret, false);
      return false;
    }
```
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.