This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8049: SSE unaligned vector stores crash with -O0
- From: Ian Ollmann <iano at cco dot caltech dot edu>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: hubicka at gcc dot gnu dot org, <gcc-bugs at gcc dot gnu dot org>, <gcc-prs at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>
- Date: Thu, 10 Oct 2002 10:54:51 -0700
- Subject: Re: optimization/8049: SSE unaligned vector stores crash with -O0
On Thu, 10 Oct 2002, Jan Hubicka wrote:
> > On 10 Oct 2002 hubicka@gcc.gnu.org wrote:
> >
> > > Synopsis: SSE unaligned vector stores crash with -O0
> > >
> > > State-Changed-From-To: open->closed
> > > State-Changed-By: hubicka
> > > State-Changed-When: Thu Oct 10 09:45:59 2002
> > > State-Changed-Why:
> > > It is runtime bug to not align stack properly for main.
> > > It will go away with runtime compiled using gcc 3.2 or can be workarounded by avoiding vector stuff in main.
> > >
> > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8049
> >
> > I see this in functions that are not main(). Didn't I provide an example
> > of one?
>
> I didn't see it. Can you send me some?
The original example is one. The three buffers passed into MatrixMultiply
happen to be aligned on my system. The actual crash happens when the stack
copy of C1 is loaded, before the _mm_store_ps (uninlined) function is
called.
Ian
---------------------------------------------------
Ian Ollmann, Ph.D. iano@cco.caltech.edu
---------------------------------------------------