From acbe0deecfbd7afce3eacca744b672bde5118927 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Wed, 27 Sep 2023 09:57:05 +0100 Subject: [PATCH] crc: fix build with NASM 2.14 Fix following compilation error crc/crc32_iscsi_by16_10.s:408: error: invalid combination of opcode and operands Fixes #257. Signed-off-by: Pablo de Lara --- crc/crc32_gzip_refl_by16_10.asm | 2 +- crc/crc32_ieee_by16_10.asm | 2 +- crc/crc32_iscsi_by16_10.asm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crc/crc32_gzip_refl_by16_10.asm b/crc/crc32_gzip_refl_by16_10.asm index aa902d2..dd58ef6 100644 --- a/crc/crc32_gzip_refl_by16_10.asm +++ b/crc/crc32_gzip_refl_by16_10.asm @@ -441,7 +441,7 @@ align 16 xor r10, r10 bts r10, arg3 dec r10 - kmovw k2, r10w + kmovw k2, r10d vmovdqu8 xmm7{k2}{z}, [arg2] vpxor xmm7, xmm0 ; xor the initial crc value diff --git a/crc/crc32_ieee_by16_10.asm b/crc/crc32_ieee_by16_10.asm index 2601607..56e9d98 100644 --- a/crc/crc32_ieee_by16_10.asm +++ b/crc/crc32_ieee_by16_10.asm @@ -455,7 +455,7 @@ align 16 xor r10, r10 bts r10, arg3 dec r10 - kmovw k2, r10w + kmovw k2, r10d vmovdqu8 xmm7{k2}{z}, [arg2] vpshufb xmm7, xmm18 ; byte-reflect the plaintext diff --git a/crc/crc32_iscsi_by16_10.asm b/crc/crc32_iscsi_by16_10.asm index 3031e9b..570599a 100644 --- a/crc/crc32_iscsi_by16_10.asm +++ b/crc/crc32_iscsi_by16_10.asm @@ -405,7 +405,7 @@ align 16 xor r10, r10 bts r10, arg3 dec r10 - kmovw k2, r10w + kmovw k2, r10d vmovdqu8 xmm7{k2}{z}, [arg2] vpxor xmm7, xmm0 ; xor the initial crc value