Skip to content

Commit

Permalink
GH-111485: Break up instructions with unused cache entries into compo…
Browse files Browse the repository at this point in the history
…nent micro-ops (GH-113169)
  • Loading branch information
markshannon authored Dec 18, 2023
1 parent 7719035 commit 70d378c
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 70d378c

Please sign in to comment.