This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ppc e500: fix misc patterns & add xor patterns
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Feb 2003 10:41:51 -0800
- Subject: Re: ppc e500: fix misc patterns & add xor patterns
On Sunday, February 9, 2003, at 10:04 PM, Andreas Tobler wrote:
Aldy Hernandez wrote:
First, the e500 assembler syntax changed back in September and
redhat's tree had a few mods that never made it out to mainline.
These mods are by Nick Clifton. I just tweaked them to make them
apply.
Second, I found some xor pattern changes in my tree that will be part
of some upcoming patches, and I figured... better early than late.
Checked by building cc1 for powerpc-eabispe. I'm still putzing
around with getting an e500 sim available.
Committed to mainline.
Breaks on powerpc-linux, with
- comparison warnings (signed/unsigned). rs6000.c 1987, 2396 ....
- rs6000.c:4057 CODE_FOR_spe_evxor undeclared.
the xor problem is mine. i forgot to commit the .c portion.
- ANSI C does not support ll length modifier, 3528, 3530, ...
i'm still bootstrapping just in case i made another thinko, but i've
committed the patch below which should get you back to happiville.
sorry about that.
aldy
2003-02-10 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to
xorv2si3.
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.421
diff -c -p -r1.421 rs6000.c
*** config/rs6000/rs6000.c 31 Jan 2003 01:42:35 -0000 1.421
--- config/rs6000/rs6000.c 10 Feb 2003 18:39:00 -0000
*************** static struct builtin_description bdesc_
*** 4054,4060 ****
{ 0, CODE_FOR_spe_brinc, "__builtin_spe_brinc", SPE_BUILTIN_BRINC },
/* Place-holder. Leave as last binary SPE builtin. */
! { 0, CODE_FOR_spe_evxor, "__builtin_spe_evxor", SPE_BUILTIN_EVXOR },
};
/* AltiVec predicates. */
--- 4054,4060 ----
{ 0, CODE_FOR_spe_brinc, "__builtin_spe_brinc", SPE_BUILTIN_BRINC },
/* Place-holder. Leave as last binary SPE builtin. */
! { 0, CODE_FOR_xorv2si3, "__builtin_spe_evxor", SPE_BUILTIN_EVXOR },
};
/* AltiVec predicates. */