https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106195
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- The CPU-id switched code needs to be in different functions where you can then use the target attribute to enable/disable ISAs. As Andrew says, controlling this per statement is not going to work with the way GCC handles instruction selection and register allocation (just to name very few but maybe obvious places). I'd say WONTFIX (or find the duplicate enhancement request).