From: Luke Kenneth Casson Leighton Date: Tue, 4 May 2021 16:56:03 +0000 (+0100) Subject: add ALUHelpers check_fast_spr3 for SVSRR0 checking X-Git-Tag: 0.0.3~88 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8e722e9540d57f466dc455b66d75480ad0c88b8;p=openpower-isa.git add ALUHelpers check_fast_spr3 for SVSRR0 checking --- 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']