When I tried to compile arm neon c intrinsics program on raspberry pi 4 as follows
gcc -march=native -mfpu=neon -mneon-for-64bits
warning: implicit declaration of function ‘vaddlvq_s8’; did you mean ‘vpaddlq_s8’? [-Wimplicit-function-declaration]
And I cannot find vaddlvq_s8 function in arm_neon.h although it can be found in arm neon intrinsics reference. I have no idea how to deal with it.
Hi wonderpyj,
Are you sure you're using a gcc for AArch64 and not AArch32? vaddlvq_s8 is only available on the 64-bit toolchain.
Can you paste the output of `gcc -v`?
Thank you! I found that that raspberry pi 4 is using 32-bit OS, armv7l rather than armv8, 64-bit as I previously thought. My GCC version is 8.3.0 (Raspbian 8.3.0-6+rpi1)
Great, I have suggested my previous question as the answer then :)