x86: Avoid abort on invalid broadcast
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Aug 2021 13:38:21 +0000 (06:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Aug 2021 14:01:20 +0000 (07:01 -0700)
commit7e40d574be8b8bc01d3726b90556cff0081e9dd9
tree616c46809f70e57ca26b18743e8c1951ac5db857
parent8ddf46454aa981246f9611b1897f41fabd2a108d
x86: Avoid abort on invalid broadcast

Print "{bad}" on invalid broadcast instead of abort.

gas/

PR binutils/28247
* testsuite/gas/i386/bad-bcast.d: New file.
* testsuite/gas/i386/bad-bcast.s: Likewise.
* testsuite/gas/i386/i386.exp: Run bad-bcast.

opcodes/

PR binutils/28247
* i386-dis.c (OP_E_memory): Print "{bad}" on invalid broadcast
instead of abort.
gas/testsuite/gas/i386/bad-bcast.d [new file with mode: 0644]
gas/testsuite/gas/i386/bad-bcast.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
opcodes/i386-dis.c