Skip to content

Commit

Permalink
GH-111485: Sort cases in the case generator output (GH-112315)
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Nov 22, 2023
1 parent fef6fb8 commit 1619f43
Show file tree
Hide file tree
Showing 3 changed files with 4,574 additions and 4,570 deletions.
26 changes: 13 additions & 13 deletions Lib/test/test_generated_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,6 @@ def test_macro_instruction(self):
family(OP, INLINE_CACHE_ENTRIES_OP) = { OP3 };
"""
output = """
TARGET(OP1) {
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
next_instr += 2;
INSTRUCTION_STATS(OP1);
PyObject *right;
PyObject *left;
right = stack_pointer[-1];
left = stack_pointer[-2];
uint16_t counter = read_u16(&this_instr[1].cache);
op1(left, right);
DISPATCH();
}
TARGET(OP) {
frame->instr_ptr = next_instr;
next_instr += 6;
Expand Down Expand Up @@ -447,6 +434,19 @@ def test_macro_instruction(self):
DISPATCH();
}
TARGET(OP1) {
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
next_instr += 2;
INSTRUCTION_STATS(OP1);
PyObject *right;
PyObject *left;
right = stack_pointer[-1];
left = stack_pointer[-2];
uint16_t counter = read_u16(&this_instr[1].cache);
op1(left, right);
DISPATCH();
}
TARGET(OP3) {
frame->instr_ptr = next_instr;
next_instr += 6;
Expand Down
Loading

0 comments on commit 1619f43

Please sign in to comment.