internal/subtle: fix riscv64

This commit is contained in:
Sun Yimin 2024-09-02 13:18:08 +08:00 committed by GitHub
parent 3ede9024a5
commit 235382a457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -2,9 +2,7 @@ package fiat_test
import ( import (
"bytes" "bytes"
"crypto/rand"
"encoding/hex" "encoding/hex"
"fmt"
"math/big" "math/big"
"testing" "testing"

View File

@ -46,7 +46,7 @@ less_than4:
MOVHU (X6), X10 MOVHU (X6), X10
MOVHU (X7), X11 MOVHU (X7), X11
XOR X10, X11, X10 XOR X10, X11, X10
MOVHU X10, (X5) MOVH X10, (X5)
ADD $2, X5 ADD $2, X5
ADD $2, X6 ADD $2, X6
ADD $2, X7 ADD $2, X7
@ -57,7 +57,7 @@ less_than2:
MOVBU (X6), X10 MOVBU (X6), X10
MOVBU (X7), X11 MOVBU (X7), X11
XOR X10, X11, X10 XOR X10, X11, X10
MOVBU X10, (X5) MOVB X10, (X5)
done: done:
RET RET