Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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