This is the mail archive of the gcc-help@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]

Re: alignment issues for sse


On Thu, 17 Feb 2005, Brian Budge wrote:

great.  My problem now is that I'm declaring variables on the stack
and they're not being aligned.

Hmm, I just tried this, and for me __m128 gets automatically correctly aligned, no matter which way I arrange the local declarations...


gcc 3.3.2 and gcc 4.0.0.

Corey, you talk about advancing the pointer until it is aligned... is
there a trick like that for the stack?

{ ...

	long double aligningstuff;
        __m128      this_is_16_bytes_aligned;

	...
}

and compile with `-m128bit-long-double' (this *should* be 16 byte aligned) ???

K



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