From db2ef7c822354f0bd07a167c1d41ff1cbec88498 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 15 Oct 2023 20:54:12 -0700 Subject: [PATCH] put DIVMOD REGEX under new LogType: LogType.OutputMatching --- src/openpower/test/bigint/powmod.py | 4 ++-- src/openpower/util.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/bigint/powmod.py b/src/openpower/test/bigint/powmod.py index fd406f78..fab2daa2 100644 --- a/src/openpower/test/bigint/powmod.py +++ b/src/openpower/test/bigint/powmod.py @@ -18,7 +18,7 @@ from openpower.test.common import TestAccumulatorBase, skip_case from openpower.test.state import ExpectedState from openpower.test.util import assemble from nmutil.sim_util import hash_256 -from openpower.util import log +from openpower.util import log, LogType from nmutil.plain_data import plain_data from cached_property import cached_property from openpower.decoder.isa.svshape import SVSHAPE @@ -252,7 +252,7 @@ class _DivModRegsRegexLogger: value, name, i = value segments.append(f" +{value:08x}") segments.append("\\n") - log("DIVMOD REGEX:", "".join(segments)) + log("DIVMOD REGEX:", "".join(segments), kind=LogType.OutputMatching) def python_divmod_shift_sub_algorithm(n, d, width=256, log_regex=False): diff --git a/src/openpower/util.py b/src/openpower/util.py index ffc90380..f63a49f0 100644 --- a/src/openpower/util.py +++ b/src/openpower/util.py @@ -97,6 +97,7 @@ class LogType(Enum): Default = "default" InstrInOuts = "instr_in_outs" SkipCase = "skip_case" + OutputMatching = "output_matching" @lru_cache(typed=True) -- 2.30.2