[Bug tree-optimization/108387] [13 Regression] ICE in VN_INFO with multiple and shifts producing 0 at -O2/s/3

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 12 20:26:23 GMT 2023


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot com
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-01-12
            Summary|[13 Regression] ICE: tree   |[13 Regression] ICE in
                   |check: expected ssa_name,   |VN_INFO with multiple and
                   |have integer_cst in         |shifts producing 0 at
                   |VN_INFO, at                 |-O2/s/3
                   |tree-ssa-sccvn.cc:450 at    |
                   |-O2/s/3                     |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. Here is a testcase without vectors Compile at -O2 -fno-tree-ccp to
produce the same issue:
```
void bar2 (unsigned char, unsigned char);

void
foo1 (char c)
{
  unsigned char t = c;
  t *= 2;
  unsigned char t1 = t << 7;
  bar2 (t, t1);
}
```


More information about the Gcc-bugs mailing list