Skip to content

Commit d951a3a

Browse files
committed
Cover _RROT_3 opcodes as well
1 parent 7be8ba0 commit d951a3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/cases_generator/stack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def push_cache(self, op_name: str, cached_items:list[str], outputs: int, out: CW
228228
for i, name in enumerate(cached_items):
229229
out.start_line()
230230
if (op_name == "_CALL_TYPE_1" and outputs == 2) \
231-
or (op_name == "_SHUFFLE_3_LOAD_CONST_INLINE_BORROW" and outputs == 3):
231+
or (op_name == "_SHUFFLE_3_LOAD_CONST_INLINE_BORROW" and outputs == 3) \
232+
or (op_name == "_RROT_3" and outputs == 3):
232233
out.emit("Py_GCC_ATTRIBUTE((unused))\n")
233234
out.emit(f"_PyStackRef _stack_item_{i} = {name};\n")
234235
self.push(Local.register(f"_stack_item_{i}"))

0 commit comments

Comments
 (0)