From 30f2d8a8e92ad2939775f19e6a0f387499e9842b 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