From: Andrey Miroshnikov Date: Thu, 19 Oct 2023 10:05:05 +0000 (+0000) Subject: Added assert to check inner/outer results match X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30f2d8a8e92ad2939775f19e6a0f387499e9842b;p=openpower-isa.git Added assert to check inner/outer results match --- diff --git a/src/openpower/decoder/isa/test_caller_svp64_matrix.py b/src/openpower/decoder/isa/test_caller_svp64_matrix.py index fab9c2e9..f2f7096f 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_matrix.py +++ b/src/openpower/decoder/isa/test_caller_svp64_matrix.py @@ -84,6 +84,8 @@ class DecoderTestCase(FHDLTestCase): yf = reduce(operator.add, Y) expected = reduce(operator.add, matmult_outer(X, Y)) expected2 = reduce(operator.add, matmult_inner(X, Y)) + # Check that outer/inner methods match + assert expected == expected2 print("flattened X,Y,expected (outer), expected (inner)") print("\t", xf) print("\t", yf)