From a99747a2b1ad8aed0ce685d06e37b80e0aa75ec2 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Thu, 19 Oct 2023 10:05:05 +0000 Subject: [PATCH] Added assert to check inner/outer results match --- src/openpower/decoder/isa/test_caller_svp64_matrix.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2