On Sun, Nov 8, 2015 at 4:37 PM, Michael Meissner
<meiss...@linux.vnet.ibm.com> wrote:
> This patch adds support for scalar count trailing zeros instruction that is
> being added to ISA 3.0 (power9).
>
> I have built this patch (along with patches #2 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
>         count trailing zero instruction if we have hardware support.
>
>         * config/rs6000/rs6000.h (TARGET_CTZ): Add support for count
>         trailing zero instruction in ISA 3.0.
>         * config/rs6000/rs6000.c (ctz<mode>2): Likewise.
>         (ctz<mode>2_h): Likewise.
>
> [gcc/testsuite]
> 2015-11-08  Michael Meissner  <meiss...@linux.vnet.ibm.com>
>
>         * gcc.target/powerpc/ctz-1.c: Add test for count trailing zero
>         instruciton support.
>         * gcc.target/powerpc/ctz-2.c: Likewise.

This is okay.  We can address the attribute at a later time if necessary.

Please re-check CTZ_DEFINED_VALUE_AT_ZERO.

Thanks, David

Reply via email to