Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpufeatures: Detecting support for neon? #846

Open
VorpalBlade opened this issue Mar 12, 2023 · 3 comments
Open

cpufeatures: Detecting support for neon? #846

VorpalBlade opened this issue Mar 12, 2023 · 3 comments

Comments

@VorpalBlade
Copy link

It would be useful to be able to detect support for the neon instruction set on ARM, allowing to use vectorised instructions. As far as I can tell from the documentation, this is not yet supported.

@tarcieri
Copy link
Member

Re: ARM, we only currently support AArch64, where the neon target feature is always enabled

@VorpalBlade
Copy link
Author

Ah, so useless for me, I'm working on 32-bit ARM MCUs.

@tarcieri
Copy link
Member

MCUs are also a bit of a different use case from our other ARM targets, where CPU feature detection is a privileged operation and we have to ask the OS about supported features through userspace APIs.

We can potentially support calling the privileged instructions (along with ARM32 targets in general), similar to how CPUID is implemented on x86 targets, but it's a bit different from what we've done for other targets.

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

No branches or pull requests

2 participants