This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 19 Aug 2013 09:17:24 -0400
- Subject: Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- References: <1376672816 dot 5807 dot 8 dot camel at otta> <20130816171133 dot GI1814 at tucnak dot redhat dot com> <1376687898 dot 5807 dot 26 dot camel at otta> <20130816212523 dot GL1814 at tucnak dot redhat dot com> <1376692337 dot 5807 dot 36 dot camel at otta>
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
- References:
- [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins
- Re: [PATCH, rs6000, generic builtins] Fix unary TDmode patterns and add DFP ABS builtins