From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2160 invoked by alias); 3 Jun 2004 17:18:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2146 invoked from network); 3 Jun 2004 17:18:34 -0000 Received: from unknown (HELO physunc.phy.uc.edu) (129.137.4.6) by sourceware.org with SMTP; 3 Jun 2004 17:18:34 -0000 Received: from bethe.phy.uc.edu (bethe.geop.uc.edu [10.44.6.245]) by physunc.phy.uc.edu (8.9.3p2/8.9.3) with ESMTP id NAA04783; Thu, 3 Jun 2004 13:18:28 -0400 (EDT) Received: from [10.44.3.42] ([10.44.3.42]) by bethe.phy.uc.edu (8.9.3p2/8.9.3) with ESMTP id NAA12932; Thu, 3 Jun 2004 13:18:32 -0400 (EDT) In-Reply-To: <20040603170759.25568.qmail@sourceware.org> References: <20040603143635.15795.ma1flfs@bath.ac.uk> <20040603170759.25568.qmail@sourceware.org> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <09380EA3-B582-11D8-A236-000A95967F9E@physics.uc.edu> Content-Transfer-Encoding: 7bit Cc: gcc-bugs@gcc.gnu.org, Andrew Pinski From: Andrew Pinski Subject: Re: [Bug c++/15795] Strange bug / incorrect code generation with SSE Date: Thu, 03 Jun 2004 17:18:00 -0000 To: gcc-bugzilla@gcc.gnu.org X-SW-Source: 2004-06/txt/msg00348.txt.bz2 List-Id: On Jun 3, 2004, at 13:07, ma1flfs at bath dot ac dot uk wrote: > > ------- Additional Comments From ma1flfs at bath dot ac dot uk > 2004-06-03 17:07 ------- > How about this case then? > class Foo > { > public: > float a; > Vector4 foo; > > Foo(const Vector4 &v) > { > foo = v; > } > }; Because in the struct (class) Foo, the field is foo is at the offset of 16, really it has the same problem as before though as Foo does not start at a memory location &0xF (16byte aligned). Go read a book about alignment and vector registers. Thanks, Andrew Pinski