This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR55152
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Andrew Pinski <pinskia at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Oct 2016 12:09:24 +0000
- Subject: Re: [PATCH] Fix PR55152
- Authentication-results: sourceware.org; auth=none
- References: <alpine.LSU.2.11.1609281614110.26629@t29.fhfr.qr> <alpine.DEB.2.20.1609281727030.7282@digraph.polyomino.org.uk> <alpine.LSU.2.11.1609290921490.26629@t29.fhfr.qr> <alpine.LSU.2.11.1609291423160.26629@t29.fhfr.qr> <CA+=Sn1k+B17JqZZbUOeyZD7f=o2PE8ntd-sMUvCf5sh6hPxNrQ@mail.gmail.com> <alpine.LSU.2.11.1610040915210.26629@t29.fhfr.qr>
On Tue, 4 Oct 2016, Richard Biener wrote:
> Possibly. Though then for FP we also want - abs (a) -> copysign (a, -1).
For architectures such as powerpc that have a negated-abs instruction,
does it get properly generated from the copysign code? (The relevant
pattern in rs6000.md uses (neg (abs)) - is that the correct canonical RTL
for this?)
--
Joseph S. Myers
joseph@codesourcery.com