]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: templatize INC/DEC
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Mar 2024 10:47:59 +0000 (11:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Mar 2024 10:47:59 +0000 (11:47 +0100)
commitcd9ca24dd21821f203279d48d8ae1b67cc4aa5fe
tree39fb221ed632c46917c68f0e0a37e3dacc0ceb4d
parent4ef6173d2dfeafd33deedf7ce0d384cfbcf1170d
x86: templatize INC/DEC

With the multitude of new APX templates, it finally becomes desirable to
further remove redundancy by also templatizing basic arithmetic insns.
Start with the simplest case, accompanied by a necessary adjustment to
i386-gen (such that template uses can also be at the start of a line).

While there also drop a bogus (meaningless / unreachable) "break" as
well as a unused variable (which I'm surprised compilers didn't warn
about).
opcodes/i386-gen.c
opcodes/i386-opc.tbl
opcodes/i386-tbl.h