x86: make swap_2_operands() have unsigned parameters
authorJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:05:10 +0000 (14:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:05:10 +0000 (14:05 +0200)
commit783c187b8ce8a2b414ca0145e27ae9747d857e98
tree97f6182c301e9ba4e75c527c60c1ef0d6b5731df
parentd1cbe0076a4b6442793121413a0d3b52ae19727e
x86: make swap_2_operands() have unsigned parameters

All callers pass unsigned values (in some cases by virtue of passing
non-negative literal numbers).

This in turn requires struct {Mask,RC,Broadcast}_Operation's "operand"
fields to become unsigned, in turn allowing to reduce the amount of
casting needed (the two new casts that are necessary cast _to_
"unsigned" instead of _from_, as that's the form that'll never case
undefined behavior).
gas/ChangeLog
gas/config/tc-i386.c