Skip to content

Commit 70d378c

Browse files
authored
GH-111485: Break up instructions with unused cache entries into component micro-ops (GH-113169)
1 parent 7719035 commit 70d378c

File tree

5 files changed

+102
-8
lines changed

5 files changed

+102
-8
lines changed

Lib/test/test_generated_cases.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ def test_macro_instruction(self):
457457
PyObject *left;
458458
PyObject *arg2;
459459
PyObject *res;
460+
/* Skip 5 cache entries */
460461
right = stack_pointer[-1];
461462
left = stack_pointer[-2];
462463
arg2 = stack_pointer[-3];
@@ -467,6 +468,7 @@ def test_macro_instruction(self):
467468
}
468469
"""
469470
self.run_cases_test(input, output)
471+
470472
def test_unused_caches(self):
471473
input = """
472474
inst(OP, (unused/1, unused/2 --)) {
@@ -478,6 +480,8 @@ def test_unused_caches(self):
478480
frame->instr_ptr = next_instr;
479481
next_instr += 4;
480482
INSTRUCTION_STATS(OP);
483+
/* Skip 1 cache entry */
484+
/* Skip 2 cache entries */
481485
body();
482486
DISPATCH();
483487
}

0 commit comments

Comments
 (0)