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 for PR21969 (large vector causes ICE)


> On Mon, Jun 20, 2005 at 09:53:06AM -0700, Steve Ellcey wrote:
> > +   /* nunits is stored in precision field which is "unsigned int : 9",
> > +      256 is the largest value that can be stored.  */
> > +   if (nunits > 256)
> 
> Given that we only handle powers of 2, perhaps we should simply store
> the log2 of the actual number, and have the TYPE_VECTOR_SUBPARTS macro
> use (1 << bitfield).
> 
> 
> r~

That is certainly doable, but do we need vector sizes greater than 256?
My discovery of the ICE and submission of the PR was not based on any
real code, I was just experementing with vectors.

Steve Ellcey
sje@cup.hp.com


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