diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-15 08:21:48 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-15 08:21:48 -0700 |
commit | 8cac017d35ef374e65acc98818a17cf8a652cbd0 (patch) | |
tree | 1bf514962753aafe579eabc9173fb1f63b0d191a | |
parent | 0d96e4df4812c3bad77c229dfef47a9bc115ac12 (diff) | |
download | binutils-8cac017d35ef374e65acc98818a17cf8a652cbd0.zip binutils-8cac017d35ef374e65acc98818a17cf8a652cbd0.tar.gz binutils-8cac017d35ef374e65acc98818a17cf8a652cbd0.tar.bz2 |
i386-dis: Add 2 tests with invalid bnd register
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.
-rw-r--r-- | gas/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/mpx.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/mpx.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-mpx.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-mpx.s | 12 |
5 files changed, 41 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f4506ce..38ffc66 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +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, diff --git a/gas/testsuite/gas/i386/mpx.d b/gas/testsuite/gas/i386/mpx.d index 0e84b9b..c7c08ad 100644 --- a/gas/testsuite/gas/i386/mpx.d +++ b/gas/testsuite/gas/i386/mpx.d @@ -130,4 +130,8 @@ Disassembly of section .text: [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 diff --git a/gas/testsuite/gas/i386/mpx.s b/gas/testsuite/gas/i386/mpx.s index 3d1b5d0..1ae51fc 100644 --- a/gas/testsuite/gas/i386/mpx.s +++ b/gas/testsuite/gas/i386/mpx.s @@ -157,3 +157,15 @@ start: 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 diff --git a/gas/testsuite/gas/i386/x86-64-mpx.d b/gas/testsuite/gas/i386/x86-64-mpx.d index b798649..e2a7828 100644 --- a/gas/testsuite/gas/i386/x86-64-mpx.d +++ b/gas/testsuite/gas/i386/x86-64-mpx.d @@ -182,4 +182,8 @@ Disassembly of section .text: [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 diff --git a/gas/testsuite/gas/i386/x86-64-mpx.s b/gas/testsuite/gas/i386/x86-64-mpx.s index 0db4bdc..1263408 100644 --- a/gas/testsuite/gas/i386/x86-64-mpx.s +++ b/gas/testsuite/gas/i386/x86-64-mpx.s @@ -209,3 +209,15 @@ start: 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 |