This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR 4579: 3DNow optimization failure
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 1 Dec 2001 17:28:21 -0500
- Subject: PR 4579: 3DNow optimization failure
Hi,
The following patch fixes PR 4579. The testcase for this
patch is attached to PR 4579:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=viewl&pr=4579&database=gcc
2001-12-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR optimization/4579
* simplify-rtx.c (simplify_gen_subreg): Replace abort()
statments with return NULL_RTX.
Index: simplify-rtx.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.86
diff -u -r1.86 simplify-rtx.c
--- simplify-rtx.c 2001/11/14 13:51:10 1.86
+++ simplify-rtx.c 2001/12/01 22:22:57
@@ -2646,15 +2646,15 @@
/* Little bit of sanity checking. */
if (innermode == VOIDmode || outermode == VOIDmode
|| innermode == BLKmode || outermode == BLKmode)
- abort ();
+ return NULL_RTX;
if (GET_MODE (op) != innermode
&& GET_MODE (op) != VOIDmode)
- abort ();
+ return NULL_RTX;
if (byte % GET_MODE_SIZE (outermode)
|| byte >= GET_MODE_SIZE (innermode))
- abort ();
+ return NULL_RTX;
if (GET_CODE (op) == QUEUED)
return NULL_RTX;
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net