https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129011
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |middle-end
Summary|[14/15/16/17 Regression] |Wrong code at -O1 and -Os:
|Wrong code at -O1 and -Os: |a signed _BitInt(3) struct
|a signed _BitInt(3) struct |member copied through SRA
|member copied through SRA |reads back without sign
|reads back without sign |extension (5 instead of -3)
|extension (5 instead of -3) |
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
At -O1 in optimized we have:
```
c_19 = VIEW_CONVERT_EXPR<_BitInt(8)>(_9);
_5 = VIEW_CONVERT_EXPR<_BitInt(3)>(c_19);
```