This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins


On Fri, Aug 16, 2013 at 6:32 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:

> Ok, updated to switch the order of the alternatives.  This works...just
> like the previous one.  I created two versions of the TD test case to
> test both alternatives and to make sure we get fmrs on the one and
> no fmrs on the other.
>
> Peter
>
>
> gcc/
>         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
>         (BUILT_IN_FABSD64): Likewise.
>         (BUILT_IN_FABSD128): Likewise.
>         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
>         (fold_builtin_1): Likewise.
>         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping destination
>         and source operands.
>         (*abstd2_fpr): Likewise.
>         (*nabstd2_fpr): Likewise.
>
> gcc/testsuite/
>         * gcc.target/powerpc/dfp-dd-2.c: New test.
>         * gcc.target/powerpc/dfp-td-2.c: Likewise.
>         * gcc.target/powerpc/dfp-td-3.c: Likewise.

The last version is okay.

> And is the *negtd2_fpr hunk ok for the 4.8 branch?

The negtd2_fpr change is okay for the 4.8 branch.

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]