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.
This commit is contained in:
H.J. Lu 2021-08-19 07:39:10 -07:00
parent 7e40d574be
commit ca22cf5ed5
2 changed files with 4 additions and 3 deletions

View file

@ -1,2 +1,3 @@
.text .text
# Invalid 16-bit broadcast with EVEX.W == 1.
.byte 0x62, 0xc3, 0x8c, 0x1d, 0x66, 0x90, 0x66, 0x90, 0x66, 0x90 .byte 0x62, 0xc3, 0x8c, 0x1d, 0x66, 0x90, 0x66, 0x90, 0x66, 0x90

View file

@ -11928,7 +11928,7 @@ OP_E_memory (int bytemode, int sizeflag)
oappend ("{1to32}"); oappend ("{1to32}");
break; break;
default: default:
oappend ("{bad}"); abort ();
} }
} }
} }
@ -11948,7 +11948,7 @@ OP_E_memory (int bytemode, int sizeflag)
oappend ("{1to8}"); oappend ("{1to8}");
break; break;
default: default:
oappend ("{bad}"); abort ();
} }
} }
else if (bytemode == x_mode else if (bytemode == x_mode
@ -11966,7 +11966,7 @@ OP_E_memory (int bytemode, int sizeflag)
oappend ("{1to16}"); oappend ("{1to16}");
break; break;
default: default:
oappend ("{bad}"); abort ();
} }
} }
else else