[Bug c++/15795] Strange bug / incorrect code generation with SSE
Andrew Pinski
pinskia@physics.uc.edu
Thu Jun 3 17:18:00 GMT 2004
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
More information about the Gcc-bugs
mailing list