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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |14.0
            Summary|[13/14 Regression] Wrong    |[13 Regression] Wrong code
                   |code at -O2/3 on            |at -O2/3 on
                   |x86_64-linux-gnu since      |x86_64-linux-gnu since
                   |GCC-13 since                |GCC-13 since
                   |r12-1653-gcb448ade74d       |r12-1653-gcb448ade74d
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot 
gnu.org
         Depends on|                            |111445
             Status|NEW                         |ASSIGNED

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> This doesn't reproduce on the trunk since
> r14-4790-g9692309ed6b625f0fb358c0e230404b5603f69a6 anymore.  Was that a fix
> for this or just made it latent?

It does look similar enough:

   <bb 7> [local count: 118111600]:
   k_11 = k_38 + 1;
-  _13 = (unsigned char) j_12(D);
-  _14 = _13 + 1;
-  _15 = (int) _14;
+  _13 = _26;
+  _14 = _28;
+  _15 = _29;
   _16 = (int) k_11;
-  _17 = _15 + _16;
+  _17 = _29 + 1;

I'll add this testcase as well.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111445
[Bug 111445] [12 Regression] Wrong code at -Os on x86_64-linux-gnu since
r12-1077-g57bf3751511

Reply via email to