From 81444f9d417ce483823dc75d08ba3f0ee8ee563c Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Thu, 3 Oct 2024 13:10:26 +0000 Subject: [PATCH] avx512_t1: [DOCSIS] fix loop alignment Signed-off-by: Pablo de Lara --- lib/avx512_t1/aes_docsis_dec_avx512.asm | 1 + lib/avx512_t1/aes_docsis_enc_avx512.asm | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/avx512_t1/aes_docsis_dec_avx512.asm b/lib/avx512_t1/aes_docsis_dec_avx512.asm index fb099c12..164178ee 100644 --- a/lib/avx512_t1/aes_docsis_dec_avx512.asm +++ b/lib/avx512_t1/aes_docsis_dec_avx512.asm @@ -815,6 +815,7 @@ mksection .text %assign align_blocks (align_blocks + 1) %endrep +align 32 %%_main_loop: cmp %%NUM_BYTES, (8 * 16) jb %%_exit_loop diff --git a/lib/avx512_t1/aes_docsis_enc_avx512.asm b/lib/avx512_t1/aes_docsis_enc_avx512.asm index b6a34984..cfdbcbd0 100644 --- a/lib/avx512_t1/aes_docsis_enc_avx512.asm +++ b/lib/avx512_t1/aes_docsis_enc_avx512.asm @@ -731,6 +731,7 @@ mksection .text sub %%LEN, 16 je %%_encrypt_the_last_block +align 32 %%_main_enc_loop: ;; if 16 bytes left (for CRC) then ;; go to the code variant where CRC last block case is checked