mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
AVX-512: Fix bug in checking high-16 registers
Register value needs to be checked. Previous patch compared with reg_enum. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
6d16d2836d
commit
7abc78dee0
@ -2144,7 +2144,7 @@ static enum match_result matches(const struct itemplate *itemp,
|
||||
*/
|
||||
opsizemissing = true;
|
||||
}
|
||||
} else if (instruction->oprs[i].basereg >= 16 &&
|
||||
} else if (nasm_regvals[instruction->oprs[i].basereg] >= 16 &&
|
||||
(itemp->flags & IF_INSMASK) != IF_AVX512) {
|
||||
return MERR_ENCMISMATCH;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user