chiark / gitweb /
base/asm-common.h: Improve conditional instruction notation.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 13 Oct 2020 23:14:49 +0000 (00:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 13 Oct 2020 23:14:49 +0000 (00:14 +0100)
commit483edf69cdc738c2315040ff9f98e4f25afdf4ae
tree62b245c0ba5258db6fc87d51c95024afac9cec06
parent05671f2db61c4f2be5e5927f65e0ef53a76a047e
base/asm-common.h: Improve conditional instruction notation.

ARM64 conditional instructions -- `ccmp', `csel', etc. -- are
inexplicably notated differently from conditional branches.  The latter
are rather pleasantly written as `b.CC TARGET', while the former are,
disappointingly, `csel RD, RN, RM, CC' and similar, with the condition
tacked on the end.

Fix this by introducing aliases `csel.CC' and suchlike for all of the
conditional instructions.
base/asm-common.h