x86: also use D for XCHG and TEST
commita33ef3c24a85759af9a629d673cb49c822466547
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Dec 2022 08:53:07 +0000 (2 09:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Dec 2022 08:53:07 +0000 (2 09:53 +0100)
treeb12e209263cebae884f3f545d0bb8ea89c0fcddd
parent63dc62b25880d4eeabb9eb3a5d691043b2723dd5
x86: also use D for XCHG and TEST

Leverage the C (commutative) attribute to also reduce the number of XCHG
and TEST templates we have. This way the reg <-> r/m (and reg <-> reg for
XCHG) forms can also be folded into a single template each, utilizing D.
gas/config/tc-i386.c
opcodes/i386-opc.tbl
opcodes/i386-tbl.h