diff options
author | Mark Shannon <mark@hotpy.org> | 2023-01-16 12:35:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 12:35:21 (GMT) |
commit | 7b14c2ef194b6eed79670aa9d7e29ab8e2256a56 (patch) | |
tree | 794188d49a9f359cfa7663c25be587634f070f22 /Doc/library/dis.rst | |
parent | b1a74a182d8762bda51838401ac92b6ebad9632a (diff) | |
download | cpython-7b14c2ef194b6eed79670aa9d7e29ab8e2256a56.zip cpython-7b14c2ef194b6eed79670aa9d7e29ab8e2256a56.tar.gz cpython-7b14c2ef194b6eed79670aa9d7e29ab8e2256a56.tar.bz2 |
GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983)
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r-- | Doc/library/dis.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 8e586e6..7f309ce 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1043,6 +1043,15 @@ iterations of the loop. ``cmp_op[opname]``. +.. opcode:: COMPARE_AND_BRANCH (opname) + + Compares the top two values on the stack, popping them, then branches. + The direction and offset of the jump is embedded as a ``POP_JUMP_IF_TRUE`` + or ``POP_JUMP_IF_FALSE`` instruction immediately following the cache. + + .. versionadded:: 3.12 + + .. opcode:: IS_OP (invert) Performs ``is`` comparison, or ``is not`` if ``invert`` is 1. |