public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* SSE fix 29 - simplify_subreg bug
@ 2002-10-27 13:42 Jan Hubicka
  2002-10-29  7:51 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Hubicka @ 2002-10-27 13:42 UTC (permalink / raw)
  To: gcc-patches, rth

Hi,
simd-5.c testcase produces crash on x86-64 because (subreg:V4SI
(const_int val))  with const_int in SImode is attempted to be produced
by parts.  WHen doing 2nd part we end up with subreg outside the mode
and get trapped in sanity check.

Sun Oct 27 22:40:11 CET 2002  Jan Hubicka  <jh@suse.cz>
	* simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
Index: simplify-rtx.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.118.2.2
diff -c -3 -p -r1.118.2.2 simplify-rtx.c
*** simplify-rtx.c	23 Oct 2002 15:48:21 -0000	1.118.2.2
--- simplify-rtx.c	27 Oct 2002 21:39:55 -0000
*************** simplify_subreg (outermode, op, innermod
*** 2351,2357 ****
  	      /* This might fail, e.g. if taking a subreg from a SYMBOL_REF.  */
  	      /* ??? It would be nice if we could actually make such subregs
  		 on targets that allow such relocations.  */
! 	      elt = simplify_subreg (submode, op, innermode, byte);
  	      if (! elt)
  		return NULL_RTX;
  	      RTVEC_ELT (v, i) = elt;
--- 2351,2360 ----
  	      /* This might fail, e.g. if taking a subreg from a SYMBOL_REF.  */
  	      /* ??? It would be nice if we could actually make such subregs
  		 on targets that allow such relocations.  */
! 	      if (byte >= GET_MODE_UNIT_SIZE (innermode))
! 		elt = CONST0_RTX (submode);
! 	      else
! 	        elt = simplify_subreg (submode, op, innermode, byte);
  	      if (! elt)
  		return NULL_RTX;
  	      RTVEC_ELT (v, i) = elt;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SSE fix 29 - simplify_subreg bug
  2002-10-27 13:42 SSE fix 29 - simplify_subreg bug Jan Hubicka
@ 2002-10-29  7:51 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-10-29  7:51 UTC (permalink / raw)
  To: Jan Hubicka; +Cc: gcc-patches

On Sun, Oct 27, 2002 at 10:42:46PM +0100, Jan Hubicka wrote:
> 	* simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.

Ok.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-29 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-27 13:42 SSE fix 29 - simplify_subreg bug Jan Hubicka
2002-10-29  7:51 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).