[ppc] Partial fix for 16458

Nathan Sidwell nathan@codesourcery.com
Wed Nov 10 11:14:00 GMT 2004


This is a partial fix for 16458, where we generated a signed compare
for equality followed by an unsigned compare for ordering.  When expanding
the first compare, we should generate an unsigned compare if the operands
are unsigned, so that we have a chance of CSEing a later compare.
Unfortunately we can only do this with subregs, which provide the signedness
information.

booted & tested on powerpc64-unknown-linux-gnu, ok?

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16458.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041110/f538c3b4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-compare-1.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041110/f538c3b4/attachment.c>


More information about the Gcc-patches mailing list