This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch: e500 cceq ccr bit goofiness
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: dje at watson dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Jul 2002 09:23:44 -0700
- Subject: 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")])