-
Notifications
You must be signed in to change notification settings - Fork 471
Support is_x86_feature_detected!() #932
Copy link
Copy link
Open
Labels
A-shimsArea: This affects the external function shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement
Metadata
Metadata
Assignees
Labels
A-shimsArea: This affects the external function shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement
Type
Fields
Give feedbackNo fields configured for issues without a type.
Miri for me is choking on usages of
is_x86_feature_detected!()(specifically the inline assembly it uses to invokecpuid) in two different crates:These crates of course can be patched to use
#[cfg(miri)]but it seems to me like Miri could also just override the internals ofis_x86_feature_detected!()to return false for all features it doesn't support, so these crates automatically fall back to implementations that Miri may already be able to evaluate. memchr may need further patching to work correctly in Miri but I think this would be worth the effort anyway.