https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562
Oleg Endo <olegendo at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-09-29 CC| |olegendo at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> --- I have tried this on current trunk (GCC 10) and it shows the same issue. During SH specific sign/zero extension optimizations, the function sh_extending_set_of_reg::use_as_extended_reg drops the REG_INC note from the memory insn, when it converts the non-extending memory load (with post-inc address) into sign-extending memory load.