Skip to content

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jan 23, 2023

IsProcessorFeaturePresent currently supports the detection of more CPU features.

winnt

(IsProcessorFeaturePresent docs currently don't mention most of them but it appears there is a PR to update it)

@rustbot
Copy link
Collaborator

rustbot commented Jan 23, 2023

r? @Amanieu

(rustbot has picked a reviewer for you, use r? to override)

@taiki-e taiki-e force-pushed the std-detect-aarch64-windows branch from 285a2e6 to c560629 Compare January 23, 2023 19:02
@taiki-e
Copy link
Member Author

taiki-e commented Jan 23, 2023

Hmm, I ran the test on a windows VM on a mac m1 that supports all these features and it looks like the detection of FEAT_RCPC is not yet supported.

asimd: true
crc: true
lse: true
dotprod: true
jsconv: true
rcpc: false
aes: true
pmull: true
sha2: true
test aarch64_windows ... ok

@taiki-e taiki-e closed this Jan 23, 2023
@taiki-e taiki-e reopened this Jan 23, 2023
@Amanieu Amanieu merged commit f325623 into rust-lang:master Jan 23, 2023
@taiki-e taiki-e deleted the std-detect-aarch64-windows branch January 24, 2023 01:08
bors bot added a commit to taiki-e/portable-atomic that referenced this pull request Jan 24, 2023
63: aarch64: Support detecting FEAT_LSE on Windows r=taiki-e a=taiki-e

As of nightly-2023-01-23, is_aarch64_feature_detected doesn't support detecting FEAT_LSE on Windows.

A patch on stdarch side: rust-lang/stdarch#1373

Co-authored-by: Taiki Endo <te316e89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants