]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98831: register instructions have 0 pushes and pops (#101163)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Thu, 19 Jan 2023 21:02:56 +0000 (21:02 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 21:02:56 +0000 (21:02 +0000)
Tools/cases_generator/generate_cases.py

index 59e249930b45df4f46a9f7a5f11a528da7235ba6..90f101adceeb47303e677e32a68f7838f9de0270 100644 (file)
@@ -810,6 +810,7 @@ class Analyzer:
                 directions.extend("DIR_WRITE" for _ in instr.output_effects)
                 directions.extend("DIR_NONE" for _ in range(3))
                 dir_op1, dir_op2, dir_op3 = directions[:3]
+                n_popped = n_pushed = 0
         self.out.emit(
             f'    [{instr.name}] = {{ {n_popped}, {n_pushed}, {dir_op1}, {dir_op2}, {dir_op3}, true, {INSTR_FMT_PREFIX}{instr.instr_fmt} }},'
         )