x86/MPX: fix address size handling
authorJan Beulich <jbeulich@novell.com>
Fri, 1 Jul 2016 07:06:16 +0000 (09:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Jul 2016 07:06:16 +0000 (09:06 +0200)
commit327e8c421bbe0f7e411bb772ee7d6353f2571a8d
tree3bf5cf5828810d58a8f89cf74756e324f57884f4
parent83b16ac69492ab493bfc87f147bf84c167bc6f30
x86/MPX: fix address size handling

While address overrides are ignored in 64-bit mode (and hence shouldn't
really result in an error, but upon v1 converting this to a warning I
was told otherwise), trying to use 16-bit addressing is documented to
result in #UD, and hence the assembler should reject the attempt. (The
added test case at once also checks that bndc{l,n,u} won't accept
16-bit register operands.)
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/mpx-inval-2.l [new file with mode: 0644]
gas/testsuite/gas/i386/mpx-inval-2.s [new file with mode: 0644]