put DIVMOD REGEX under new LogType: LogType.OutputMatching
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 16 Oct 2023 03:54:12 +0000 (20:54 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 30 Nov 2023 07:55:28 +0000 (23:55 -0800)
src/openpower/test/bigint/powmod.py
src/openpower/util.py

index fd406f78fa20e58c9cffdd5a02c05bb8e4d1c1c9..fab2daa2bb83d41bfb258ac8b7ee190402f29bcc 100644 (file)
@@ -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):
index ffc90380799968bd9eb25e9811740fac40181d39..f63a49f08c777a61af729f845aa3a78db7e5e410 100644 (file)
@@ -97,6 +97,7 @@ class LogType(Enum):
     Default = "default"
     InstrInOuts = "instr_in_outs"
     SkipCase = "skip_case"
+    OutputMatching = "output_matching"
 
 
 @lru_cache(typed=True)