https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89951
Bug ID: 89951 Summary: Uncorrect flag for Nehalem / westmere Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: bratsinot at gmail dot com Target Milestone: --- gcc set uncorrect flags -mavx256-split-unaligned-load and -mavx256-split-unaligned-store when use -march=native or Nehalem / westmere arch. Nehalem / westmere don't have AVX instruction set. So program with these instructions build incorrectly. For example: # gcc -march=westmere -Q --help=target ... | grep avx -mavx [disabled] <...> -mavx256-split-unaligned-load [enabled] -mavx256-split-unaligned-store [enabled] <...>