x86-64: change jnz/jz for jne/je after cmp/test
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Feb 2024 21:25:46 +0000 (16:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 27 Feb 2024 16:16:08 +0000 (11:16 -0500)
commit9cec5e3f6399eb5b5ddb92ee8c66c48267892eec
tree486ef30eb7204925f67cbaac3eb3fcf65bb31c2e
parent559d824f61143d1386a37a490b53359587a774b7
x86-64: change jnz/jz for jne/je after cmp/test

Those are the exact same Jcc instructions (they both depend on the ZF),
but it's clearer to use jne/je after cmp/test rather than jnz/jz.

Note that the jnz instruction is kept when it is used to check the
result of a dec instruction.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ibc2e5902b3047cb291d11d82b7e9dfa530a46891
include/rseq/rseq-x86-bits.h
This page took 0.026147 seconds and 4 git commands to generate.