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]

ppc e500: abs patch


This patch fixes a bootstrap failure on powerpc-linux-gnuspe.  With
this patch, it is now possible to bootstrap on hardware.

There is still some debate going on about what the most efficient way
of doing an absolute operation on an e500.  I may end up removing the
abssi2_isel pattern in the future, but for now this fixes the bug in
the pattern.

Anyway... We're on bootstrap happyville on hardware.

Committed to mainline and e500 branch.

2003-10-08  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
	operand 2.

Index: config/rs6000/rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.267
diff -c -p -r1.267 rs6000.md
*** config/rs6000/rs6000.md	24 Sep 2003 19:32:46 -0000	1.267
--- config/rs6000/rs6000.md	8 Oct 2003 23:55:16 -0000
***************
*** 1506,1512 ****
  (define_insn_and_split "abssi2_isel"
    [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
          (abs:SI (match_operand:SI 1 "gpc_reg_operand" "b")))
!    (clobber (match_scratch:SI 2 "=b"))
     (clobber (match_scratch:CC 3 "=y"))]
    "TARGET_ISEL"
    "#"
--- 1506,1512 ----
  (define_insn_and_split "abssi2_isel"
    [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
          (abs:SI (match_operand:SI 1 "gpc_reg_operand" "b")))
!    (clobber (match_scratch:SI 2 "=&b"))
     (clobber (match_scratch:CC 3 "=y"))]
    "TARGET_ISEL"
    "#"


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