You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
target-cpu=native should also check all the target-features #54688
Not only does it set the right target-cpu for optimization purposes, it actually manually enables / disables all the features available / not available on the host. This ensures no matter what the microarch is, only available features will be used.
I think this issue will supersede both #38218 and #48464. If we can fix this, we will never generate code with unavailable target features.
Reproducing these errors is pretty hard, unless you have a machine with a Haswell Intel Pentium.
I think it might be possible to reproduce this in QEMU with -cpu Haswell,-avx
Reacted by Andrew Wagner, EFanZh, gnzlbg, Alec Mocatta and Guillaume E
Activity
gnzlbg commentedon Apr 23, 2019
Alternatively, we could also use the
is_{arch}_feature_detected!macros to do this. I'll work on this.disable target-cpu=native
gendx commentedon Jan 3, 2020
To add another example,
target-cpu=nativedoesn't detect theaesfeature on broadwell (see #67836).as-com commentedon Jan 6, 2021
I submitted a PR for a fix: #80749