From ded12fef379bfc441ec7cc18ca8f55989782c2af Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 11 Oct 2023 12:20:58 +0100 Subject: [PATCH] store integer results in expected array --- src/openpower/decoder/isa/test_caller_svp64_matrix.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/isa/test_caller_svp64_matrix.py b/src/openpower/decoder/isa/test_caller_svp64_matrix.py index 31518f44..5e015016 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_matrix.py +++ b/src/openpower/decoder/isa/test_caller_svp64_matrix.py @@ -85,8 +85,11 @@ class DecoderTestCase(FHDLTestCase): print("spr svshape1", sim.spr['SVSHAPE1']) print("spr svshape2", sim.spr['SVSHAPE2']) print("spr svshape3", sim.spr['SVSHAPE3']) + expected = [] for i in range(4): - print("maddld-matrix i", i, sim.gpr(i).asint()) + expected.append(sim.gpr(i).asint()) + for i in range(4): + print("maddld-matrix i", i, expected[i]) # confirm that the results are as expected # for i, (t, u) in enumerate(res): # self.assertEqual(sim.fpr(i+2), t) -- 2.30.2