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]

Re: patch + rfc: clear_storage() and vectors


On Fri, Feb 15, 2002 at 06:53:34PM +1100, Aldy Hernandez wrote:
> 	* emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.

I'm not really fond of using a scalar integral zero for vectors.
Ideally we'd be using 

	(VEC_CONST:V4SI [(const_int 0)
			 (const_int 0)
			 (const_int 0)
			 (const_int 0)])

Sorry to dump this on you, but how much work would it be forcing
this all the way through the compiler?  I wouldn't think it would
be *too* bad, but everything surrounding AldyVec has been harder
than it should have been...

Note that you'd still install this as CONST0_RTX(mode), so you'd
be able to check that in the same sorts of places you're currently
checking const0_rtx.


r~


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