mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
BR 3392363: clear the operands when making an artificial I_RESB
When we make an artificial RESB instructions (due to isolated prefixes) we need to make sure there isn't any crap left in the operands structure. The easiest way to guarantee that is to force it to zero. Reported-by: Henrik <henrik@gramner.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
c33d95fde9
commit
1980abfb7a
@ -550,6 +550,7 @@ restart_parse:
|
||||
*/
|
||||
result->opcode = I_RESB;
|
||||
result->operands = 1;
|
||||
nasm_zero(result->oprs);
|
||||
result->oprs[0].type = IMMEDIATE;
|
||||
result->oprs[0].offset = 0L;
|
||||
result->oprs[0].segment = result->oprs[0].wrt = NO_SEG;
|
||||
|
4
test/br3392363.asm
Normal file
4
test/br3392363.asm
Normal file
@ -0,0 +1,4 @@
|
||||
vaddps zmm0 {k1}, zmm0, zmm0
|
||||
rep
|
||||
vaddps zmm0 {k1}, zmm0, zmm0
|
||||
rep movsd
|
Loading…
Reference in New Issue
Block a user