This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/84508] Load of misaligned address using _mm_load_sd
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Feb 2018 09:31:16 +0000
- Subject: [Bug sanitizer/84508] Load of misaligned address using _mm_load_sd
- Auto-submitted: auto-generated
- References: <bug-84508-4@http.gcc.gnu.org/bugzilla/>
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."