numam-dpdk/lib/acl
Konstantin Ananyev b3b36f0fbf acl: fix build with GCC 6.3
--buildtype=debug with gcc 6.3 produces the following error:

../lib/librte_acl/acl_run_avx512_common.h: In function
‘resolve_match_idx_avx512x16’:
../lib/librte_acl/acl_run_avx512x16.h:33:18: error:
	the last argument must be an 8-bit immediate
                               ^
../lib/librte_acl/acl_run_avx512_common.h:373:9: note:
	in expansion of macro ‘_M_I_’
      return _M_I_(slli_epi32)(mi, match_log);
             ^~~~~

Seems like gcc-6.3 complains about the following construct:

static const uint32_t match_log = 5;
    ...
_mm512_slli_epi32(mi, match_log);

It can't substitute constant variable 'match_log' with its actual value.
The fix replaces constant variable with its immediate value.

Bugzilla ID: 717
Fixes: b64c2295f7 ("acl: add 256-bit AVX512 classify method")
Fixes: 45da22e42e ("acl: add 512-bit AVX512 classify method")
Cc: stable@dpdk.org

Reported-by: Liang Ma <liangma@liangbit.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2021-06-17 09:37:11 +02:00
..
acl_bld.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_gen.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_altivec.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_altivec.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_avx2.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_avx2.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_avx512_common.h acl: fix build with GCC 6.3 2021-06-17 09:37:11 +02:00
acl_run_avx512.c acl: fix build with GCC 6.3 2021-06-17 09:37:11 +02:00
acl_run_avx512x8.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_avx512x16.h acl: fix build with GCC 6.3 2021-06-17 09:37:11 +02:00
acl_run_neon.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_neon.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_scalar.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_sse.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run_sse.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_run.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl_vect.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
acl.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_acl_osdep.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_acl.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_acl.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
tb_mem.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
tb_mem.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00