Skip to content

Commit 0b43fcc

Browse files
committed
Add a suggestion to consider deprecating opcodes 0x91 - 0x97.
These are a special case encoding of XCHG that hardcodes one register as [E/R]AX and the other register is in the low 3 bits. Encoding the exchange using the existing 87 opcode is just one byte longer. The deprecation would only be in capability mode.
1 parent 66d1b58 commit 0b43fcc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chap-cheri-x86-64.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,3 +1434,9 @@ \subsection{Direct Memory-Offset MOVs}
14341434
extended to support capability immediates for the memory offset. In
14351435
that case, the opcodes would be retained in capability mode rather
14361436
than deprecated.
1437+
1438+
\subsection{Single-byte XCHG Opcodes}
1439+
1440+
If the single-byte \insnnoref{XCHG} instructions other than
1441+
\insnnoref{NOP} (\texttt{90}) are not commonly used, they could be
1442+
deprecated in capability mode.

0 commit comments

Comments
 (0)