diff --git a/sm9/bn256/gfp_ppc64x_test.go b/sm9/bn256/gfp_ppc64x_test.go index e6c2c08..3bf69e5 100644 --- a/sm9/bn256/gfp_ppc64x_test.go +++ b/sm9/bn256/gfp_ppc64x_test.go @@ -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) {