PR binutils/21594
	* testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
	register.
	* testsuite/gas/i386/x86-64-mpx.s: Likewise.
	* testsuite/gas/i386/mpx.d: Updated.
	* testsuite/gas/i386/x86-64-mpx.d: Likewise.
+2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/21594
+       * testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
+       register.
+       * testsuite/gas/i386/x86-64-mpx.s: Likewise.
+       * testsuite/gas/i386/mpx.d: Updated.
+       * testsuite/gas/i386/x86-64-mpx.d: Likewise.
+
 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
 
        * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
 
 
 [a-f0-9]+ <foo>:
 [      ]*[a-f0-9]+:    f2 c3                   bnd ret 
+
+[a-f0-9]+ <bad>:
+[      ]*[a-f0-9]+:    0f 1a 30                bndldx \(%eax\),\(bad\)
+[      ]*[a-f0-9]+:    66 0f 1a c4             bndmov \(bad\),%bnd0
 #pass
 
        bnd ret
 
 foo:   bnd ret
+
+bad:
+       # bndldx (%eax),(bad)
+       .byte 0x0f
+       .byte 0x1a
+       .byte 0x30
+
+       # bndmov (bad),%bnd0
+       .byte 0x66
+       .byte 0x0f
+       .byte 0x1a
+       .byte 0xc4
 
 
 [a-f0-9]+ <foo>:
 [      ]*[a-f0-9]+:    f2 c3                   bnd retq 
+
+[a-f0-9]+ <bad>:
+[      ]*[a-f0-9]+:    0f 1a 30                bndldx \(%rax\),\(bad\)
+[      ]*[a-f0-9]+:    66 0f 1a c4             bndmov \(bad\),%bnd0
 #pass
 
        bnd ret
 
 foo:   bnd ret
+
+bad:
+       # bndldx (%eax),(bad)
+       .byte 0x0f
+       .byte 0x1a
+       .byte 0x30
+
+       # bndmov (bad),%bnd0
+       .byte 0x66
+       .byte 0x0f
+       .byte 0x1a
+       .byte 0xc4