From fca2c5e936587d4b9f1cc28bd8f8d8953c196859 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Sat, 5 Oct 2024 14:02:28 +0800 Subject: [PATCH] sm9/bn256: ppc64x test sub self --- sm9/bn256/gfp_ppc64x_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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) {