This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Runtime detection of SVE2 not working as expected

Hello, I used the following guide in order to write code for CPU feature detection at runtime: https://community.arm.com/arm-community-blogs/b/operating-systems-blog/posts/runtime-detection-of-cpu-features-on-an-armv8-a-cpu I modified the HWCAP example so that it reports SVE features:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

When I run the program on RPi4, I get strange values for SVE2 and SVEF64MM:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I am supposed to get 0es. Why am I getting 2 and 2048?

0