From 7abc78dee0b88125d5fb3175568c62f6d0cfb9a8 Mon Sep 17 00:00:00 2001 From: Jin Kyu Song Date: Wed, 28 Aug 2013 19:15:25 -0700 Subject: [PATCH] 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 Signed-off-by: Cyrill Gorcunov --- assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assemble.c b/assemble.c index d847d37..6ea8be6 100644 --- a/assemble.c +++ b/assemble.c @@ -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; } -- 2.7.4