On Sun, Nov 8, 2015 at 4:36 PM, Michael Meissner <meiss...@linux.vnet.ibm.com> wrote: > This is patch #2. It adds support for the new modulus instructions that are > being added in ISA 3.0 (power9): > > I have built this patch (along with patches #3 and #4) with a bootstrap build > on a power8 little endian system. There were no regressions in the test > suite. Is this patch ok to install in the trunk once patch #1 has been > installed. > > [gcc] > 2015-11-08 Michael Meissner <meiss...@linux.vnet.ibm.com> > > * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for > modulus instructions if we have hardware support. > > * config/rs6000/rs6000.md (mod<mode>3): Add support for ISA 3.0 > modulus instructions. > (umod<mode>3): Likewise. > (divmod peephole): Likewise. > (udivmod peephole): Likewise. > > [gcc/testsuite] > 2015-11-08 Michael Meissner <meiss...@linux.vnet.ibm.com> > > * lib/target-supports.exp (check_p9vector_hw_available): Add > checks for power9 availability. > (check_effective_target_powerpc_p9vector_ok): Likewise. > (check_vect_support_and_set_flags): Likewise. > > * gcc.target/powerpc/mod-1.c: New test. > * gcc.target/powerpc/mod-2.c: Likewise.
This is okay, but let's wait for revised #3 since you tested 2, 3, 4 together. Thanks, David