Hi, Qi
Thanks a lot for your quick reply.
As you said, in ARMv8, neon is deployed as asimd in cpuinfo, so we can consider tool-chain will not affect the NEON function. But, when build source code by enable neon, I can not find "-mfpu=neon" in Makefile CFLAGS defaultly on ARMv8, while I can find it when build on ARMv7. Does it affect neon function enable? As I known, if we want enable neon, we should build with "-mfpu=neon" flags.
Thanks, Joy
-----Original Message----- From: Yao Qi [mailto:yao.qi@linaro.org] Sent: Monday, October 30, 2017 5:28 PM To: Joy Deng joy.deng@nxp.com Cc: linaro-toolchain@lists.linaro.org; Ting Liu ting.liu@nxp.com; Shuo Zhang shuo.zhang@nxp.com Subject: Re: aarch64 toolchain support NEON and vfp features
On 30 October 2017 at 07:52, Joy Deng joy.deng@nxp.com wrote:
Hi ,
I am a SW engineer that use Linaro-toolchain to build images,
Recently, I encounter some issue about enable NEON features on ARMv8 processor platform. I cat cpuinfo, can not find neon and vfp feature enable in list, the image was build with aarch-64 toolchian;
In ARMv8, it should be "asimd".
While, the image built by armv7l toolchain can list "neon and vfp" in cpuinfo.
I want to verify from your side,
- if the toolchain of aarch64 version already enable" neon and vfp " in default, Because I do not find some build items that related with "neon",
- If not supported defaultly, can you give some suggestion to enable it.
It has nothing to do with toolchain. The cpuinfo is retrieved from Linux kernel, and kernel returns something different for aarch64 process and aarch32 process, to order to be backward compatible. That is why your apps get different cpuinfo on the same kernel.
-- Yao Qi