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]

AVX types: __m256d versus __v4sd


Hello,

I noticed that the AVX vector of 4 double has 2 names, __v4sd and __m256d (actually we have the same duality for SSE), and I'd like to know when I should use which name.

The only difference is the may_alias attribute. I expect that casting a __v4sd* to a double* doesn't require the may_alias attribute, and that problems only start if I try casting a __v4sd* to a __v4di*?

On the other hand, Intel only documents __m256d (the may_alias version), so portability says to use that one.


-- Marc Glisse


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