sm9/bn256: ppc64x test sub self

This commit is contained in:
Sun Yimin 2024-10-05 14:02:28 +08:00 committed by GitHub
parent 9a3d21eaec
commit fca2c5e936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,10 @@ func TestGfpAsmBasicOperations(t *testing.T) {
if *expectedSub != *x1 {
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) {