Re: [PATCH] Fix miscompilation due to REG_EQUAL note on a paradoxical subreg operation (PR rtl-optimization/89679)

2019-03-14 Thread Eric Botcazou
> Below is one patch, more in the spirit of > https://gcc.gnu.org/ml/gcc-patches/2016-04/msg00418.html > where we refuse to add REG_EQUAL note in that case. > > Attached is another variant, which keeps it around just in case something > would make use of it, but makes sure we don't fwprop into

[PATCH] Fix miscompilation due to REG_EQUAL note on a paradoxical subreg operation (PR rtl-optimization/89679)

2019-03-13 Thread Jakub Jelinek
Hi! The following testcase is miscompiled on powerpc64le-linux. As mentioned in the PR, the problem is with a REG_EQUAL note which expand_mult_const attaches to: (insn 17 16 18 2 (set (reg:SI 140) (plus:SI (subreg:SI (reg:HI 138) 0) (subreg:SI (reg:HI 136) 0)))