Re: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-05 Thread Roger Melton (rmelton)
.org >> Cc: Wathsala Wathawana Vithanage ; nd >> >> Subject: Re: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for >> 32bit ARM >> >> Considering this problem further, I don't see a way to avoid the CLANG >> compiler error with a functi

RE: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-05 Thread Wathsala Wathawana Vithanage
What version of CLANG are you using? > -Original Message- > From: Roger Melton (rmelton) > Sent: Wednesday, December 4, 2024 11:24 AM > To: Ruifeng Wang ; dev@dpdk.org > Cc: Wathsala Wathawana Vithanage ; nd > > Subject: Re: lib/eal/arm/include/rte_vect.h fails to

Re: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-04 Thread Roger Melton (rmelton)
Considering this problem further, I don't see a way to avoid the CLANG compiler error with a function implementation. We would need a macro implementation similar to CLANGS arm_neon.h. In addition, it may be necessary to provide separate implementations for CLANG and non-CLANG compilers since

RE: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-04 Thread Wathsala Wathawana Vithanage
> > clang14 does appear to support the vcopyq_laneq_u32() intrinsic, s0 we want > to skip the conditional implementation. > > Two approaches I have tested to resolve the error are: > > 1) skip if building with clang: > > > #if !defined(__clang__) && ((defined(RTE_ARCH_ARM) && > defined(R

Re: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-03 Thread Roger Melton (rmelton)
After looking at this a bit closer today, I realize that my assertion that CLANG14 does support vcopyq_laneq_u32() for 32bit ARM was incorrect. It does not. The reason that disabling the implementation in rte_vect.h works for our clang builds is that we do not build the l3fwd app nor the ixgbe

Re: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM

2024-12-02 Thread Ruifeng Wang
+Arm folks. From: Roger Melton (rmelton) Date: Tuesday, December 3, 2024 at 3:39 AM To: dev@dpdk.org , Ruifeng Wang Subject: lib/eal/arm/include/rte_vect.h fails to compile with clang14 for 32bit ARM Hey folks, We are building DPDK with clang14 for a 32bit armv8-a based CPU and ran into a com