]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: use swap_2_operands() in build_vex_prefix()
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2023 07:46:41 +0000 (08:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2023 07:46:41 +0000 (08:46 +0100)
commit67748abf53b22fd0273bb374923c101c9d597094
tree762aec973e1a6acee7db06526dc7d416490c7857
parent43da3d648ed237496f33dd620a1ee4b4f4538018
x86: use swap_2_operands() in build_vex_prefix()

Open-coding part of what may eventually be needed is somewhat risky.
Let's use the function we have, taking care of all pieces of data which
may need swapping, no matter that
- right now i.flags[] and i.reloc[] aren't relevant here (yet),
- EVEX masking and embedded broadcast aren't applicable.
gas/config/tc-i386.c