sm9/bn256: fix arm64 non-avx2 issue

This commit is contained in:
Sun Yimin 2023-10-24 14:50:51 +08:00 committed by GitHub
parent 5243d0fe91
commit 55e8c795e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,8 @@ TEXT ·gfpCopy(SB),NOSPLIT,$0
MOVOU X0, (16*0)(res_ptr) MOVOU X0, (16*0)(res_ptr)
MOVOU X1, (16*1)(res_ptr) MOVOU X1, (16*1)(res_ptr)
RET
copygfp_avx2: copygfp_avx2:
VMOVDQU (x_ptr), Y0 VMOVDQU (x_ptr), Y0
VMOVDQU Y0, (res_ptr) VMOVDQU Y0, (res_ptr)
@ -44,6 +46,7 @@ TEXT ·gfp2Copy(SB),NOSPLIT,$0
MOVOU X1, (16*1)(res_ptr) MOVOU X1, (16*1)(res_ptr)
MOVOU X2, (16*2)(res_ptr) MOVOU X2, (16*2)(res_ptr)
MOVOU X3, (16*3)(res_ptr) MOVOU X3, (16*3)(res_ptr)
RET
copygfp2_avx2: copygfp2_avx2:
VMOVDQU (32*0)(x_ptr), Y0 VMOVDQU (32*0)(x_ptr), Y0
@ -83,6 +86,8 @@ TEXT ·gfp4Copy(SB),NOSPLIT,$0
MOVOU X6, (16*6)(res_ptr) MOVOU X6, (16*6)(res_ptr)
MOVOU X7, (16*7)(res_ptr) MOVOU X7, (16*7)(res_ptr)
RET
copygfp4_avx2: copygfp4_avx2:
VMOVDQU (32*0)(x_ptr), Y0 VMOVDQU (32*0)(x_ptr), Y0
VMOVDQU (32*1)(x_ptr), Y1 VMOVDQU (32*1)(x_ptr), Y1
@ -135,6 +140,8 @@ TEXT ·gfp6Copy(SB),NOSPLIT,$0
MOVOU X10, (16*10)(res_ptr) MOVOU X10, (16*10)(res_ptr)
MOVOU X11, (16*11)(res_ptr) MOVOU X11, (16*11)(res_ptr)
RET
copygfp6_avx2: copygfp6_avx2:
VMOVDQU (32*0)(x_ptr), Y0 VMOVDQU (32*0)(x_ptr), Y0
VMOVDQU (32*1)(x_ptr), Y1 VMOVDQU (32*1)(x_ptr), Y1
@ -221,6 +228,8 @@ TEXT ·gfp12Copy(SB),NOSPLIT,$0
MOVOU X6, (16*22)(res_ptr) MOVOU X6, (16*22)(res_ptr)
MOVOU X7, (16*23)(res_ptr) MOVOU X7, (16*23)(res_ptr)
RET
copygfp12_avx2: copygfp12_avx2:
VMOVDQU (32*0)(x_ptr), Y0 VMOVDQU (32*0)(x_ptr), Y0
VMOVDQU (32*1)(x_ptr), Y1 VMOVDQU (32*1)(x_ptr), Y1