diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-08-19 07:39:10 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-08-19 07:39:10 -0700 |
commit | ca22cf5ed52c1b4c40dbadf893f558ef09d0c66b (patch) | |
tree | 6cf2830b2b1df11dade58ba474f010192c0c7506 | |
parent | 7e40d574be8b8bc01d3726b90556cff0081e9dd9 (diff) | |
download | gdb-ca22cf5ed52c1b4c40dbadf893f558ef09d0c66b.zip gdb-ca22cf5ed52c1b4c40dbadf893f558ef09d0c66b.tar.gz gdb-ca22cf5ed52c1b4c40dbadf893f558ef09d0c66b.tar.bz2 |
x86: Put back 3 aborts in OP_E_memory
Put back 3 aborts where invalid lengths should have been filtered out.
gas/
PR binutils/28247
* testsuite/gas/i386/bad-bcast.s: Add a comment.
opcodes/
PR binutils/28247
* * i386-dis.c (OP_E_memory): Put back 3 aborts.
-rw-r--r-- | gas/testsuite/gas/i386/bad-bcast.s | 1 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gas/testsuite/gas/i386/bad-bcast.s b/gas/testsuite/gas/i386/bad-bcast.s index e09c3aa..3e49b22 100644 --- a/gas/testsuite/gas/i386/bad-bcast.s +++ b/gas/testsuite/gas/i386/bad-bcast.s @@ -1,2 +1,3 @@ .text +# Invalid 16-bit broadcast with EVEX.W == 1. .byte 0x62, 0xc3, 0x8c, 0x1d, 0x66, 0x90, 0x66, 0x90, 0x66, 0x90 diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index acb5a0f..aa29223 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11928,7 +11928,7 @@ OP_E_memory (int bytemode, int sizeflag) oappend ("{1to32}"); break; default: - oappend ("{bad}"); + abort (); } } } @@ -11948,7 +11948,7 @@ OP_E_memory (int bytemode, int sizeflag) oappend ("{1to8}"); break; default: - oappend ("{bad}"); + abort (); } } else if (bytemode == x_mode @@ -11966,7 +11966,7 @@ OP_E_memory (int bytemode, int sizeflag) oappend ("{1to16}"); break; default: - oappend ("{bad}"); + abort (); } } else |