public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Tim Prince <tprince@computer.org> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: optimization/8049: SSE unaligned vector stores crash with -O0 Date: Wed, 25 Sep 2002 20:16:00 -0000 [thread overview] Message-ID: <20020926031601.25392.qmail@sources.redhat.com> (raw) The following reply was made to PR optimization/8049; it has been noted by GNATS. From: Tim Prince <tprince@computer.org> To: iano@cco.caltech.edu, gcc-gnats@gcc.gnu.org Cc: Subject: Re: optimization/8049: SSE unaligned vector stores crash with -O0 Date: Wed, 25 Sep 2002 20:13:05 -0700 On Wednesday 25 September 2002 15:58, iano@cco.caltech.edu wrote: > >Number: 8049 > >Category: optimization > >Synopsis: SSE unaligned vector stores crash with -O0 > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: unassigned > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Wed Sep 25 16:06:00 PDT 2002 > >Closed-Date: > >Last-Modified: > >Originator: Ian Ollmann > >Release: gcc 3.3 20020925 (experimental) > >Organization: > >Environment: > > Red Hat Linux 7.3 (P4/2530) > > >Description: > > I have encountered several cases at optimization level zero (-O0) wherein > the app seg faults on a movaps instruction just prior to calling > _mm_store_ps(). > > gcc -O0 -msse -g main.c > > main.c: > ------- > #include <xmmintrin.h> > #include <stdlib.h> > > void MatrixMultiply( float A[16], float B[16], float C[16] ); > > int main( void ) > { > float A[16] __attribute__ ((aligned (16) ) ); > float B[16] __attribute__ ((aligned (16) ) ); > float C[16] __attribute__ ((aligned (16) ) ); > int i; > I've seen several discussions indicating why gcc is unable to support these alignments in main(). In a search of gcc info, I don't find this point explained adequately. Ideally, the compiler would diagnose this as an error. Also, somewhere, the measures required to get alignments on Windows targets should be documented. -- Tim Prince
next reply other threads:[~2002-09-26 3:16 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-25 20:16 Tim Prince [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 17:46 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 Jan Hubicka 2002-10-10 10:56 Ian Ollmann 2002-10-10 10:46 Ian Ollmann 2002-10-10 9:46 hubicka 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=20020926031601.25392.qmail@sources.redhat.com \ --to=tprince@computer.org \ --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).