This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]