Skip to content

Commit 118522b

Browse files
committed
2 parents 1c5279b + 1619f43 commit 118522b

File tree

5 files changed

+4754
-4610
lines changed

5 files changed

+4754
-4610
lines changed

Lib/test/test_generated_cases.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,6 @@ def test_macro_instruction(self):
405405
family(OP, INLINE_CACHE_ENTRIES_OP) = { OP3 };
406406
"""
407407
output = """
408-
TARGET(OP1) {
409-
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
410-
next_instr += 2;
411-
INSTRUCTION_STATS(OP1);
412-
PyObject *right;
413-
PyObject *left;
414-
right = stack_pointer[-1];
415-
left = stack_pointer[-2];
416-
uint16_t counter = read_u16(&this_instr[1].cache);
417-
op1(left, right);
418-
DISPATCH();
419-
}
420-
421408
TARGET(OP) {
422409
frame->instr_ptr = next_instr;
423410
next_instr += 6;
@@ -447,6 +434,19 @@ def test_macro_instruction(self):
447434
DISPATCH();
448435
}
449436
437+
TARGET(OP1) {
438+
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
439+
next_instr += 2;
440+
INSTRUCTION_STATS(OP1);
441+
PyObject *right;
442+
PyObject *left;
443+
right = stack_pointer[-1];
444+
left = stack_pointer[-2];
445+
uint16_t counter = read_u16(&this_instr[1].cache);
446+
op1(left, right);
447+
DISPATCH();
448+
}
449+
450450
TARGET(OP3) {
451451
frame->instr_ptr = next_instr;
452452
next_instr += 6;

0 commit comments

Comments
 (0)