[Bug other/70118] New: UBSan claims misaligned access in SSE instrinsics
linux at carewolf dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 7 10:20:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70118
Bug ID: 70118
Summary: UBSan claims misaligned access in SSE instrinsics
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: linux at carewolf dot com
Target Milestone: ---
The intrinsics _mm_loadl_epi64 and _mm_storel_epi64 triggers UBSan warnings on
unaligned access because the instrinsics definitions in emmintrin.h are using
__m64 and __v2di pointers, and both those types have been declared with default
alignment. The intrinsics definitions should probably either be replaced with a
__builtin_ia32_movq, or the __m64 and __v2di types be defined with
__attribute__ ((aligned(1))).
More information about the Gcc-bugs
mailing list