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
acl_gen.c
acl_run_altivec.c
acl_run_altivec.h
acl_run_avx2.c
acl_run_avx2.h
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
acl_run_avx512x16.h acl: fix build with GCC 6.3 2021-06-17 09:37:11 +02:00
acl_run_neon.c
acl_run_neon.h
acl_run_scalar.c
acl_run_sse.c
acl_run_sse.h
acl_run.h
acl_vect.h
acl.h
meson.build
rte_acl_osdep.h
rte_acl.c
rte_acl.h
tb_mem.c
tb_mem.h
version.map