x86: Terminate mnemonicendp in swap_operand()
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Fri, 17 Dec 2021 23:26:54 +0000 (15:26 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 18 Dec 2021 01:01:44 +0000 (17:01 -0800)
commit9833dd97678ef5e369ff6a5eb7b508179bc038f7
tree3138a4c7aa77bb4cec66aa276d4b188f93be98b9
parent404e887836f0a5637f3d5611b04c1d63e03a9831
x86: Terminate mnemonicendp in swap_operand()

Tested on x86_64-pc-linux-gnu.

opcodes/ChangeLog:
2021-12-17 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

* i386-dis.c (swap_operand): Terminate mnemonicendp.

gas/ChangeLog:
2021-12-17 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

* testsuite/gas/i386/opts-intel.d: Updated expected disassembly.
* testsuite/gas/i386/opts.d: Likewise.
* testsuite/gas/i386/sse2avx-opts-intel.d: Likewise.
* testsuite/gas/i386/sse2avx-opts.d: Likewise.
* testsuite/gas/i386/x86-64-opts-intel.d: Likewise.
* testsuite/gas/i386/x86-64-opts.d: Likewise.
* testsuite/gas/i386/x86-64-sse2avx-opts-intel.d: Likewise.
* testsuite/gas/i386/x86-64-sse2avx-opts.d: Likewise.
gas/testsuite/gas/i386/opts-intel.d
gas/testsuite/gas/i386/opts.d
gas/testsuite/gas/i386/sse2avx-opts-intel.d
gas/testsuite/gas/i386/sse2avx-opts.d
gas/testsuite/gas/i386/x86-64-opts-intel.d
gas/testsuite/gas/i386/x86-64-opts.d
gas/testsuite/gas/i386/x86-64-sse2avx-opts-intel.d
gas/testsuite/gas/i386/x86-64-sse2avx-opts.d
opcodes/i386-dis.c