On Thu, Jul 26, 2018 at 01:16:42PM +0200, Richard Biener wrote: > On Thu, Jul 26, 2018 at 12:12 PM Segher Boessenkool > <seg...@kernel.crashing.org> wrote: > > > > The current code in reg_nonzero_bits_for_combine allows using the > > reg_stat info when last_set_mode is a different integer mode. This is > > completely wrong for non-pseudos. For example, as in the PR, a value > > in a DImode hard register is set by eight writes to its constituent > > QImode parts. The value written to the DImode is not the same as that > > written to the lowest-numbered QImode! > > > > This patch fixes it. Committing. Will backport later, too. > > testcase?
Feel free to write one? Segher