diff options
author | Jan Beulich <jbeulich@novell.com> | 2018-09-13 11:03:35 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2018-09-13 11:03:35 +0200 |
commit | d276ec695e8954330e922807d6886b8212d6323b (patch) | |
tree | f38cadf4b3cbaa4ecea609faab339e8b9790670f /gas | |
parent | 031e33500e82fb8ef525595ea684473774dfc669 (diff) | |
download | binutils-d276ec695e8954330e922807d6886b8212d6323b.zip binutils-d276ec695e8954330e922807d6886b8212d6323b.tar.gz binutils-d276ec695e8954330e922807d6886b8212d6323b.tar.bz2 |
x86-64: bndmk, bndldx, and bndstx don't allow RIP-relative addressing
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-mpx.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-mpx.s | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 84895be..8675e2f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2018-09-13 Jan Beulich <jbeulich@suse.com> + + * testsuite/gas/i386/x86-64-mpx.s: And BNDMK case with RIP- + relative memory operand. + * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations. + 2018-09-13 Nick Clifton <nickc@redhat.com> * dwarf2dbg.c (generic_dwarf2_emit_offset): Use memset to diff --git a/gas/testsuite/gas/i386/x86-64-mpx.d b/gas/testsuite/gas/i386/x86-64-mpx.d index e2a7828..bb83adc 100644 --- a/gas/testsuite/gas/i386/x86-64-mpx.d +++ b/gas/testsuite/gas/i386/x86-64-mpx.d @@ -186,4 +186,5 @@ Disassembly of section .text: [a-f0-9]+ <bad>: [ ]*[a-f0-9]+: 0f 1a 30 bndldx \(%rax\),\(bad\) [ ]*[a-f0-9]+: 66 0f 1a c4 bndmov \(bad\),%bnd0 +[ ]*[a-f0-9]+: f3 0f 1b 05 90 90 90 90 bndmk \(bad\),%bnd0 #pass diff --git a/gas/testsuite/gas/i386/x86-64-mpx.s b/gas/testsuite/gas/i386/x86-64-mpx.s index 1263408..726e35a 100644 --- a/gas/testsuite/gas/i386/x86-64-mpx.s +++ b/gas/testsuite/gas/i386/x86-64-mpx.s @@ -221,3 +221,10 @@ bad: .byte 0x0f .byte 0x1a .byte 0xc4 + + # bndmk (bad),%bnd0 + .byte 0xf3 + .byte 0x0f + .byte 0x1b + .byte 0x05 + .long 0x90909090 |