Added assert to check inner/outer results match
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 19 Oct 2023 10:05:05 +0000 (10:05 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:21 +0000 (19:26 +0000)
src/openpower/decoder/isa/test_caller_svp64_matrix.py

index fab9c2e9337df86c874d4cc060537805a6e10fe3..f2f7096fb21228a1fb16480b2d582627acd93111 100644 (file)
@@ -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)