[Bug middle-end/106470] Subscribed access to __m256i casted to (uint16_t *) produces garbage or a warning
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 28 21:54:52 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106470
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You are violating C aliasing rules.
You need a uint16_t type which is marked as may_alias. Or use memcpy or use
-fno-strict-aliasing etc.
More information about the Gcc-bugs
mailing list