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:
Jin Kyu Song 2013-08-28 19:15:25 -07:00 committed by Cyrill Gorcunov
parent 6d16d2836d
commit 7abc78dee0

View File

@ -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;
}