public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned
@ 2004-10-12 23:48 janis187 at us dot ibm dot com
  2004-10-14 14:10 ` [Bug target/17962] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: janis187 at us dot ibm dot com @ 2004-10-12 23:48 UTC (permalink / raw)
  To: gcc-bugs

The following test case is compiled to use hardware vector support
for -msse, -msse2, or -mmmx even though the vector type is smaller
than what the hardware supports for float elements.  The vector
variables are given an alignment of 4 bytes, causing a seg fault at
runtime.
                                                                                
  __attribute__ ((vector_size (8))) float v1, v2, v3;
                                                                                
  int
  main ()
  {
    v1 = v2 + v3;
    return 0;
  }
                                                                                
Last tested with a native i686-pc-linux-gnu compiler with today's
mainline.

-- 
           Summary: small fp vector uses sse/mmx vectors and is not aligned
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis187 at us dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
@ 2004-10-14 14:10 ` pinskia at gcc dot gnu dot org
  2004-10-15  8:32 ` rth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 14:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-14 14:10 -------
Confirmed, this is a regression from 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-14 14:10:24
               date|                            |
            Summary|small fp vector uses sse/mmx|[4.0 Regression] small fp
                   |vectors and is not aligned  |vector uses sse/mmx vectors
                   |                            |and is not aligned
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
  2004-10-14 14:10 ` [Bug target/17962] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-15  8:32 ` rth at gcc dot gnu dot org
  2004-10-15  8:38 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-15  8:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
  2004-10-14 14:10 ` [Bug target/17962] [4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-10-15  8:32 ` rth at gcc dot gnu dot org
@ 2004-10-15  8:38 ` rth at gcc dot gnu dot org
  2004-10-19 19:15 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-15  8:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-10-15 08:37 -------
Patch: http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01266.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
                   ` (2 preceding siblings ...)
  2004-10-15  8:38 ` rth at gcc dot gnu dot org
@ 2004-10-19 19:15 ` cvs-commit at gcc dot gnu dot org
  2004-10-19 19:21 ` cvs-commit at gcc dot gnu dot org
  2004-10-19 19:22 ` rth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-19 19:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-19 19:15 -------
Subject: Bug 17962

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-10-19 19:15:32

Modified files:
	gcc            : ChangeLog stor-layout.c 

Log message:
	PR 17962
	* stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5950&r2=2.5951
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/stor-layout.c.diff?cvsroot=gcc&r1=1.215&r2=1.216



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
                   ` (3 preceding siblings ...)
  2004-10-19 19:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-19 19:21 ` cvs-commit at gcc dot gnu dot org
  2004-10-19 19:22 ` rth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-19 19:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-19 19:21 -------
Subject: Bug 17962

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-10-19 19:21:42

Added files:
	gcc/testsuite/gcc.dg: align-2.c 

Log message:
	Testcase for PR 17962.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/align-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/17962] [4.0 Regression] small fp vector uses sse/mmx vectors and is not aligned
  2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
                   ` (4 preceding siblings ...)
  2004-10-19 19:21 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-19 19:22 ` rth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-19 19:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-10-19 19:22 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17962


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-19 19:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 23:48 [Bug target/17962] New: small fp vector uses sse/mmx vectors and is not aligned janis187 at us dot ibm dot com
2004-10-14 14:10 ` [Bug target/17962] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-15  8:32 ` rth at gcc dot gnu dot org
2004-10-15  8:38 ` rth at gcc dot gnu dot org
2004-10-19 19:15 ` cvs-commit at gcc dot gnu dot org
2004-10-19 19:21 ` cvs-commit at gcc dot gnu dot org
2004-10-19 19:22 ` rth at gcc dot gnu dot org

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).