Skip to content

Commit

Permalink
crc: fix build with NASM 2.14
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pablodelara authored and tkanteck committed Nov 15, 2023
1 parent 4815174 commit acbe0de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crc/crc32_gzip_refl_by16_10.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crc/crc32_ieee_by16_10.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion crc/crc32_iscsi_by16_10.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acbe0de

Please sign in to comment.