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]

patch: e500 cceq ccr bit goofiness


In CCEQ modes, we have the CCR bits in a different place.  This was
found by running the Perennial test suite on powerpc-eabispe.

Regtested on powerpc-eabispe, and successfully running the entire
Perennial C testsuite.

Ok?

Aldy

2002-07-29  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
	for TARGET_SPE.

Index: rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.200
diff -c -p -r1.200 rs6000.md
*** rs6000.md	29 Jul 2002 21:37:23 -0000	1.200
--- rs6000.md	30 Jul 2002 16:19:14 -0000
***************
*** 13518,13524 ****
  						      "cc_reg_operand" "y")
  				       (const_int 0)])
  		      (const_int 0)))]
!   ""
    "{crnor %E0,%j1,%j1|crnot %E0,%j1}"
    [(set_attr "type" "cr_logical")])
  
--- 13518,13524 ----
  						      "cc_reg_operand" "y")
  				       (const_int 0)])
  		      (const_int 0)))]
!   "!TARGET_SPE"
    "{crnor %E0,%j1,%j1|crnot %E0,%j1}"
    [(set_attr "type" "cr_logical")])
  


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