mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
GH-111485: Sort cases in the case generator output (GH-112315)
This commit is contained in:
parent
fef6fb8762
commit
1619f4350e
3 changed files with 4580 additions and 4576 deletions
|
|
@ -405,19 +405,6 @@ class TestGeneratedCases(unittest.TestCase):
|
|||
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;
|
||||
|
|
@ -447,6 +434,19 @@ class TestGeneratedCases(unittest.TestCase):
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue