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

2017-06-01 Thread Bruce Richardson
On Thu, Jun 01, 2017 at 06:01:35AM +, Sangjin Han wrote: > When rte_lpm.h is used on x86, -O0 option (no optimization at all) > given to g++ (not 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)); >

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

2017-05-31 Thread Sangjin Han
When rte_lpm.h is used on x86, -O0 option (no optimization at all) given to g++ (not 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 thi