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=a99747a2b1ad8aed0ce685d06e37b80e0aa75ec2;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)