Re: [dpdk-dev] [PATCH v2] lpm: fix build error on g++ with -O0 option

2017-06-05 Thread Thomas Monjalon
02/06/2017 11:30, Bruce Richardson: > On Fri, Jun 02, 2017 at 05:07:46AM +, Sangjin Han wrote: > > When rte_lpm.h is used on x86, -O0 option (no optimization at all) > > given to gcc causes a compile error like this: > > > > error: the last argument must be an 8-bit immediate > >i24 = _mm_

Re: [dpdk-dev] [PATCH v2] lpm: fix build error on g++ with -O0 option

2017-06-02 Thread Bruce Richardson
On Fri, Jun 02, 2017 at 05:07:46AM +, Sangjin Han wrote: > When rte_lpm.h is used on x86, -O0 option (no optimization at all) > given to gcc causes a compile error like this: > > error: the last argument must be an 8-bit immediate >i24 = _mm_srli_si128(i24, sizeof(uint64_t)); > > -O0 opti

[dpdk-dev] [PATCH v2] lpm: fix build error on g++ with -O0 option

2017-06-01 Thread Sangjin Han
When rte_lpm.h is used on x86, -O0 option (no optimization at all) given to gcc causes a compile error like this: error: the last argument must be an 8-bit immediate i24 = _mm_srli_si128(i24, sizeof(uint64_t)); -O0 option is useful for debugging and code coverage measurement, but this error pr