i386-dis: Check valid bnd register
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Jun 2017 13:40:17 +0000 (06:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Jun 2017 13:40:17 +0000 (06:40 -0700)
commit0d96e4df4812c3bad77c229dfef47a9bc115ac12
treedd6b8d5036fe76d58922074da21ed2765e463223
parentcd3ea7c69acc5045eb28f9bf80d923116e15e4f5
i386-dis: Check valid bnd register

Since there are only 4 bnd registers, return "(bad)" for register
number > 3.

PR binutils/21594
* i386-dis.c (OP_E_register): Check valid bnd register.
(OP_G): Likewise.
opcodes/ChangeLog
opcodes/i386-dis.c