Skip to contentSkip to conversation

compilation error in l3fwd for ARMv7 NEON

DISCUSSION Thomas Monjalon 2 participants 2 messages Jul 7, 2017

lore
Share & tools
lore
#0 lore raw

Hi Jianbo,

It seems your NEON acceleration of the example l3fwd is not compiling for ARMv7:

	examples/l3fwd/l3fwd_neon.h:113:6: error:
	implicit declaration of function ‘vaddvq_u16’

I am using gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.

Is it something we can fix easily?

#1 lore raw
Quoted 10 lines · On Fri, 07 Jul 2017 17:24:38 +0200 Thomas Monjalon <[email protected]> wrote:

Hi Jianbo,

It seems your NEON acceleration of the example l3fwd is not compiling for ARMv7:

	examples/l3fwd/l3fwd_neon.h:113:6: error:
	implicit declaration of function ‘vaddvq_u16’

I am using gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.

Is it something we can fix easily?

It seems that the vaddvq_u16 is for AArch64 only. It is not listed in:

https://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/ARM-NEON-Intrinsics.html

And e.g. here:

https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00162.html

they ifdef it for __aarch64.

Regards
Jan

Signature · 4 lines
   Jan Viktorin                  E-mail: [email protected]
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic