https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107304
--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Hongtao.liu from comment #14) > (In reply to H.J. Lu from comment #12) > > (In reply to Hongyu Wang from comment #10) > > > > > > Clang works properly as it overrides -march= to any target clones. I > > > suppose > > > we can do similar things in ix86_valid_target_attribute_p > > > > That will be wrong since target attribute can be used to disable vector > > instructions. > > But target_clones can't? > https://godbolt.org/z/jn6GMrdsb arch=nehalem will disable AVX.