On Thu, 2020-02-06 at 14:05 +0100, Mihailo Stojanovic wrote: > Unnecessary moves around dpadd and dpsub are caused by different pseudos > being assigned to the input-output operands which correspond to the same > register. > > Just like for the MSA multiply-accumulate instructions, this forces the > same pseudo to the input-output operands, > which removes unnecesary moves. > > Tested on mips-mti-linux-gnu. > > gcc/ChangeLog: > > * gcc/config/mips/mips.c (mips_expand_builtin_insn): Operands of > DSP multiply-accumulate instructions which correspond to the > same input-output register now have the same pseudo asigned to > them. > > gcc/testsuite/ChangeLog: > > * gcc/testsuite/gcc.target/mips/mac-zero-reload.c: New test. Affects just MIPS, so OK even though we're in stage4.
jeff >