[Bug c++/15795] Strange bug / incorrect code generation with SSE

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Thu Jun 3 17:18:00 GMT 2004


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



More information about the Gcc-bugs mailing list