mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
sm9/bn256: ppc64x test sub self
This commit is contained in:
parent
9a3d21eaec
commit
fca2c5e936
@ -85,6 +85,10 @@ func TestGfpAsmBasicOperations(t *testing.T) {
|
|||||||
if *expectedSub != *x1 {
|
if *expectedSub != *x1 {
|
||||||
t.Errorf("sub not same when sub self")
|
t.Errorf("sub not same when sub self")
|
||||||
}
|
}
|
||||||
|
gfpSubAsm(ret, x, x)
|
||||||
|
if *ret != *zero {
|
||||||
|
t.Errorf("expected zero")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("neg", func(t *testing.T) {
|
t.Run("neg", func(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user