[Bug libstdc++/90611] Generating a bad sse instruction for 32 bit

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 24 12:10:00 GMT 2019


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Aaron Greig from comment #1)
> actually it seems that vector_size(16) creates a type that is over aligned,
> the following assert fails:
> 
> static_assert(std::alignment_of<int4>::value <= alignof(max_align_t), "over
> aligned!");

That should only fail with GCC 5, not with GCC 8.

Current versions of GCC defined max_align_t to have 16-byte alignment, so your
type is not overaligned with current versions (but as I said above, the old
glibc on Ubuntu 16.04 disagrees).


More information about the Gcc-bugs mailing list