public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Ian Ollmann <iano@cco.caltech.edu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: optimization/8049: SSE unaligned vector stores crash with -O0 Date: Thu, 10 Oct 2002 17:46:00 -0000 [thread overview] Message-ID: <20021011004602.29112.qmail@sources.redhat.com> (raw) The following reply was made to PR optimization/8049; it has been noted by GNATS. From: Ian Ollmann <iano@cco.caltech.edu> To: Jan Hubicka <jh@suse.cz> Cc: hubicka@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org> Subject: Re: optimization/8049: SSE unaligned vector stores crash with -O0 Date: Thu, 10 Oct 2002 17:45:16 -0700 On Thu, 10 Oct 2002, Jan Hubicka wrote: > This really is load, however it is stored previously as: > > 0x80484c9 <MatrixMultiply+177>: movaps %xmm0,0xffffff68(%ebp) > > And it didn't generated trap, so ebp is aligned that time I suppose, > so it is really strange to see that it is not in this case. > Perhaps it is _mm_store_ps that messed up the stack and restored ebp > incorrectly? I checked. I stepped through the entire function. %esp stays the same the whole time (so long as we are in MatrixMultiply and after return from various sub functions) and is 16 byte aligned. The problem is that the compiler seems to have generated a 4 byte offset from the 16 byte aligned stack pointer and tried to do an align vector store there. For the other earlier stores, the offset is an even multiple of 16 bytes. 0x804888b <MatrixMultiply+1139> movaps %xmm0, 0x4(%esp,1) ^^^ esp: 0xbffff790 The store looks to me like a write to pass the vector on the stack, just before the call is made. Perhaps it is time to reopen this bug? I think this is a compiler alignment bug. It happens for nearly every call to _mm_store_ps() if -O0 is set. Ian --------------------------------------------------- Ian Ollmann, Ph.D. iano@cco.caltech.edu ---------------------------------------------------
next reply other threads:[~2002-10-11 0:46 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-10 17:46 Ian Ollmann [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-04-08 13:14 hubicka 2002-10-11 12:41 hubicka 2002-10-11 2:36 Jan Hubicka 2002-10-10 18:06 Ian Ollmann 2002-10-10 12:46 Ian Ollmann 2002-10-10 12:26 Jan Hubicka 2002-10-10 12:16 Ian Ollmann 2002-10-10 11:06 Jan Hubicka 2002-10-10 10:56 Ian Ollmann 2002-10-10 10:56 Jan Hubicka 2002-10-10 10:46 Ian Ollmann 2002-10-10 9:46 hubicka 2002-09-25 20:16 Tim Prince 2002-09-25 16:06 iano
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021011004602.29112.qmail@sources.redhat.com \ --to=iano@cco.caltech.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).