8000 GH-111485: Sort cases by markshannon · Pull Request #112315 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-111485: Sort cases #112315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Fix up test
  • Loading branch information
markshannon committed Nov 20, 2023
commit c910a8ac64c4e0ff36ed2461245b672a3bcc32cd
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
0