This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15795] Strange bug / incorrect code generation with SSE
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2004 17:18:40 -0000
- Subject: [Bug c++/15795] Strange bug / incorrect code generation with SSE
- References: <20040603143635.15795.ma1flfs@bath.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at physics dot uc dot edu 2004-06-03 17:18 -------
Subject: Re: Strange bug / incorrect code generation with SSE
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795