sm9/bn256: arm64 fix mul issue

This commit is contained in:
Sun Yimin 2023-07-24 16:26:16 +08:00 committed by GitHub
parent 4985c6da53
commit f6ad6f3719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,12 @@ TEXT gfpMulInternal(SB),NOSPLIT,$0
UMULH const3, hlp0, hlp0
ADC $0, acc7
ADDS t1, acc0, acc0
ADCS y0, acc1, acc1
ADCS acc3, acc2, acc2
ADC $0, hlp0, acc3
// Add bits [511:256] of the mul result
ADDS acc4, acc0, acc0
ADCS acc5, acc1, acc1