Skip to content

Commit

Permalink
Merge pull request #7666 from SparkiDev/sp_x64_asm_fix_2
Browse files Browse the repository at this point in the history
SP Intel x64 ASM: fixes
  • Loading branch information
JacobBarthelmeh authored Jun 25, 2024
2 parents f466453 + 75d06cd commit 263eb6c
Show file tree
Hide file tree
Showing 2 changed files with 2,975 additions and 2,967 deletions.
28 changes: 18 additions & 10 deletions wolfcrypt/src/sp_x86_64_asm.S
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sp_x86_64_asm.S */
/*
* Copyright (C) 2006-2023 wolfSSL Inc.
* Copyright (C) 2006-2024 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
Expand Down Expand Up @@ -59047,15 +59047,23 @@ _sp_256_mod_inv_avx2_4:
movq 8(%rsi), %r11
movq 16(%rsi), %r12
movq 24(%rsi), %r13
vmovupd 0+L_sp256_mod_inv_avx2_4_order(%rip), %ymm6
vmovupd 32+L_sp256_mod_inv_avx2_4_order(%rip), %ymm7
vmovupd 0+L_sp256_mod_inv_avx2_4_one(%rip), %ymm8
vmovupd 0+L_sp256_mod_inv_avx2_4_mask01111(%rip), %ymm9
vmovupd 0+L_sp256_mod_inv_avx2_4_all_one(%rip), %ymm10
vmovupd 0+L_sp256_mod_inv_avx2_4_down_one_dword(%rip), %ymm11
vmovupd 0+L_sp256_mod_inv_avx2_4_neg(%rip), %ymm12
vmovupd 0+L_sp256_mod_inv_avx2_4_up_one_dword(%rip), %ymm13
vmovupd 0+L_sp256_mod_inv_avx2_4_mask26(%rip), %ymm14
leaq L_sp256_mod_inv_avx2_4_order(%rip), %rbx
vmovupd (%rbx), %ymm6
vmovupd 32(%rbx), %ymm7
leaq L_sp256_mod_inv_avx2_4_one(%rip), %rbx
vmovupd (%rbx), %ymm8
leaq L_sp256_mod_inv_avx2_4_mask01111(%rip), %rbx
vmovupd (%rbx), %ymm9
leaq L_sp256_mod_inv_avx2_4_all_one(%rip), %rbx
vmovupd (%rbx), %ymm10
leaq L_sp256_mod_inv_avx2_4_down_one_dword(%rip), %rbx
vmovupd (%rbx), %ymm11
leaq L_sp256_mod_inv_avx2_4_neg(%rip), %rbx
vmovupd (%rbx), %ymm12
leaq L_sp256_mod_inv_avx2_4_up_one_dword(%rip), %rbx
vmovupd (%rbx), %ymm13
leaq L_sp256_mod_inv_avx2_4_mask26(%rip), %rbx
vmovupd (%rbx), %ymm14
vpxor %xmm0, %xmm0, %xmm0
vpxor %xmm1, %xmm1, %xmm1
vmovdqu %ymm8, %ymm2
Expand Down
Loading

0 comments on commit 263eb6c

Please sign in to comment.