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 sanitizer/84508] Load of misaligned address using _mm_load_sd


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84508

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Copying from
https://gcc.gnu.org/ml/gcc-help/2017-12/msg00031.html

"The way _mm_load_sd is currently implemented in gcc, yes, sanitizers are right
to complain. Intel could have named the thing _mm_loadu_sd if that's what they
meant. It would be simple to change if we decide to do so, please file a PR in
bugzilla.

Workaround: define a typedef for double with __attribute__((__aligned__(1))),
and use _mm_set_sd(*(newtype*)p), that's how it will likely be done if we
change emmintrin.h."

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