mirror of
https://github.com/emmansun/gmsm.git
synced 2025-10-14 07:10:45 +08:00
loong64: check LSX & LASX support
This commit is contained in:
parent
9a3357cf0b
commit
eb2be5cf68
@ -5,6 +5,7 @@ package sm2ec
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -78,6 +79,7 @@ func newPoint(x, y, z uint64) *SM2P256Point1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestP256MovCond(t *testing.T) {
|
func TestP256MovCond(t *testing.T) {
|
||||||
|
fmt.Printf("supportLSX=%v, supportLASX=%v\n", supportLSX, supportLASX)
|
||||||
a := newPoint(10, 20, 30)
|
a := newPoint(10, 20, 30)
|
||||||
b := newPoint(100, 200, 300)
|
b := newPoint(100, 200, 300)
|
||||||
var res SM2P256Point1
|
var res SM2P256Point1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user