Skip to content

Commit

Permalink
sm9/bn256: arm64 test mul, found issue, try again
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Jul 25, 2023
1 parent abf506d commit 087b3ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sm9/bn256/gfp2_g1_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "textflag.h"

#define res_ptr R0
#define res_ptr R27
#define a_ptr R1
#define b_ptr R2

Expand All @@ -24,7 +24,7 @@
#define const3 R16

#define hlp0 R17
#define hlp1 res_ptr
#define hlp1 R0

#define x0 R19
#define x1 R20
Expand Down Expand Up @@ -505,6 +505,7 @@ TEXT gfpSqrInternal(SB),NOSPLIT,$0

// func gfp2Mul(c, a, b *gfP2)
TEXT ·gfp2Mul(SB),NOSPLIT,$104-24
MOVD res+0(FP), res_ptr
MOVD in1+8(FP), a_ptr
MOVD in2+16(FP), b_ptr

Expand All @@ -515,7 +516,7 @@ TEXT ·gfp2Mul(SB),NOSPLIT,$104-24
LDx (y1in)
LDy (y2in)
CALL gfpMulInternal(SB)
MOVD res+0(FP), res_ptr

STy (tmp0)
STy (x3out)
/*
Expand Down

0 comments on commit 087b3ae

Please sign in to comment.