x86-64: properly bounds-check %bnd<N> in OP_G()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jul 2021 11:03:16 +0000 (13:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jul 2021 11:03:16 +0000 (13:03 +0200)
commitbac11f2cfe7913ef4c37af608454451e27f78eff
tree954a895ffa1607a8e70e4ea3e88beeeeb4975fcb
parent3fa77affb00ef5d9bcb7f080750625749cdfa611
x86-64: properly bounds-check %bnd<N> in OP_G()

The restriction to %bnd0-%bnd3 requires to also check REX.R is clear,
just like OP_E_Register() also includes REX.B in its check.
gas/testsuite/gas/i386/x86-64-mpx.d
gas/testsuite/gas/i386/x86-64-mpx.s
opcodes/i386-dis.c