From f8e722e9540d57f466dc455b66d75480ad0c88b8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 4 May 2021 17:56:03 +0100 Subject: [PATCH] add ALUHelpers check_fast_spr3 for SVSRR0 checking --- src/openpower/test/common.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openpower/test/common.py b/src/openpower/test/common.py index 33a873db..754505ec 100644 --- a/src/openpower/test/common.py +++ b/src/openpower/test/common.py @@ -514,6 +514,13 @@ class ALUHelpers: print(f"expected {expected:x}, actual: {alu_out:x}") dut.assertEqual(expected, alu_out, msg) + def check_fast_spr3(dut, res, sim_o, msg): + if 'fast3' in res: + expected = sim_o['fast3'] + alu_out = res['fast3'] + print(f"expected {expected:x}, actual: {alu_out:x}") + dut.assertEqual(expected, alu_out, msg) + def check_int_o1(dut, res, sim_o, msg): if 'o1' in res: expected = sim_o['o1'] -- 2.30.2