Skip to content

Commit

Permalink
pythonGH-111485: Break up instructions with unused cache entries into…
Browse files Browse the repository at this point in the history
… component micro-ops (pythonGH-113169)
  • Loading branch information
markshannon authored and aisk committed Feb 11, 2024
1 parent fc93c01 commit 89e7a82
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_generated_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def test_macro_instruction(self):
PyObject *left;
PyObject *arg2;
PyObject *res;
/* Skip 5 cache entries */
right = stack_pointer[-1];
left = stack_pointer[-2];
arg2 = stack_pointer[-3];
Expand All @@ -467,6 +468,7 @@ def test_macro_instruction(self):
}
"""
self.run_cases_test(input, output)

def test_unused_caches(self):
input = """
inst(OP, (unused/1, unused/2 --)) {
Expand All @@ -478,6 +480,8 @@ def test_unused_caches(self):
frame->instr_ptr = next_instr;
next_instr += 4;
INSTRUCTION_STATS(OP);
/* Skip 1 cache entry */
/* Skip 2 cache entries */
body();
DISPATCH();
}
Expand Down
Loading

0 comments on commit 89e7a82

Please sign in to comment.